Tags:
create new tag
view all tags

SID-01154: Google Analytics Plugin (for non qualified domain) does not work

Status: Answered Answered TWiki version: 4.2.4 Perl version:
Category: CategoryPlugins Server OS: Last update: 14 years ago

My Twiki's url is http://name/twiki/bin/view/ where 'name' is non a fully qualified domain. However I have created a UA-XXXXXXX-X by using incorrect url just to make it be qualified and get aWebPropertyId.

Next I installed GA Plugin in Tiwiki using this UA-XXXXXXX-X but it seems not working correctly. Status is saying that data is receiving successfully but it only recieved very poor data few days ago and now does not recieve any data at all (I know for fact that page have visitors).

Any thoughts?

--MC- 2011-04-27

Discussion and Answer

Hello.

When you dont have a FQDN you can insert a

 _gaq.push(['_setDomainName', 'none']);

in your Google tracking script. The full script could be

<script type="text/javascript">

 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-XXXXXXXXX']);
 _gaq.push(['_setDomainName', 'none']);
 _gaq.push(['_trackPageview']);

 (function() {
   var ga = document.createElement('script'); ga.type =
'text/javascript'; ga.async = true;
   ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
   var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
 })();

</script>
-- EnriqueCadalso - 2011-05-08

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Google Analytics Plugin (for non qualified domain) does not work
SupportCategory CategoryPlugins
TWiki version 4.2.4
Server OS

Web server Apache
Perl version

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2011-07-08 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.