Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Google Analytics Javascript does not appear

  • edwardhaase
  • edwardhaase's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #143299 by edwardhaase
Google Analytics Javascript does not appear was created by edwardhaase
I have configured the UA-Tracking-ID into the [GLOBAL SETTINGS][GENERAL][Google Analytics API key] as in picture 1. (I know, that is not an API key, so maybe there is another place to config the Tracking-ID it, which I havn't found :().

UA-Tracking-ID within the {GOOGLE_ANALYTICS_JAVASCRIPT}-placeholder of 'startpage.pstpl' is not shown and replaced as shown in picture 2.

What did I made wrong?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #143300 by holch
From your second screenshot I assume that you want to use GA in a survey, not for the LS Administration.

Did you make the respective settings for this survey:


I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: edwardhaase
The topic has been locked.
  • edwardhaase
  • edwardhaase's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #143352 by edwardhaase
Replied by edwardhaase on topic Google Analytics Javascript does not appear
That is the missing glue which solves the problem... I didn't found that in the manual, may you will check the search-box functionality. When you enter [Google Analytics] into the upper right search-box, the result set does only contain links to the global settings and nothing about the survey specific configuration.
Thanks
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #143367 by holch
Great that this solved the problem.

If you feel that something is missing in the manual, you can always add it. The manual is a wiki and you should be able to access it with your login from the forum. The project depends on the participation of the community!

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
5 years 11 months ago #168052 by joseagc
Replied by joseagc on topic Google Analytics Javascript does not appear
Hi Holch,

we need to use GA in every survey that is created by our customers, but when a survey is created the "Google Analytics settings" option by default is none, and some customers forget changing the "Google Analytics settings" option. How can I force the "Google Analytics settings" option to have the value "use global settings" when creating a survey?

I don't see the way in the global setting the LS Administration.

Thanks

José A
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago #168060 by holch
I have no idea.

But I personally would refrain from using GA together with surveys anyway. The privacy and data protection issues are just too complicated for me to open this wasp nest.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
5 years 11 months ago #168231 by joseagc
Replied by joseagc on topic Google Analytics Javascript does not appear
ok, i'll take your advice into account,

thanks
The topic has been locked.
More
5 years 3 months ago #179403 by MackFord
Replied by MackFord on topic Google Analytics Javascript does not appear
Hi, please let me know how to add google analytics code in the site.

Thanks in advance for your help,
The topic has been locked.
More
4 years 6 months ago #189264 by mediaformat
Replied by mediaformat on topic Google Analytics Javascript does not appear
I'm having a weird issue, I wanted to post here before doing a bug report.

I'm using the Vanilla base theme, and have set the Google Analytics API key to my UA id

But when I select use global settings in a survey, the output is as follows:
Code:
        (function(i,s,o,g,r,a,m){ i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments) },i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
 
        ga('create', '9999useGlobal9999', 'auto');  // Replace with your property ID.
        ga('send', 'pageview');

9999useGlobal9999?

Lol, what?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 6 months ago #189267 by holch
This happens also in the demo site, so I guess it is a bug.

When you choose "Use settings below" instead of "use global settings" it works.

Please report it as a bug. In the meantime the work around would be to set your ID per Survey.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
4 years 6 months ago #189337 by mediaformat
Replied by mediaformat on topic Google Analytics Javascript does not appear
Thanks, I managed to track down a bug report , after seeing in the code .
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 6 months ago #189341 by holch
Hmmm, I couldn't find your bug report here: bugs.limesurvey.org/

Could you please post a link to your report, so we can accompany it here from the forum?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose