Google Analytics Javascript does not appear

More
6 years 1 month ago #143299 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?
Attachments:
The topic has been locked.
More
6 years 1 month 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.
Attachments:
The following user(s) said Thank You: edwardhaase
The topic has been locked.
More
6 years 1 month ago #143352 by edwardhaase
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.
More
6 years 1 month 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
4 years 7 months ago #168052 by joseagc
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.
More
4 years 7 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
4 years 7 months ago #168231 by joseagc
ok, i'll take your advice into account,

thanks
The topic has been locked.
More
3 years 10 months ago #179403 by MackFord
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
3 years 2 months ago #189264 by mediaformat
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:
        (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.
More
3 years 2 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
3 years 2 months ago #189337 by mediaformat
Thanks, I managed to track down a bug report , after seeing in the code .
The topic has been locked.
More
3 years 2 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.
More
3 years 2 months ago #189343 by holch
It doesn't help to just "track down" the bug report. Because as you can see, the bug report in your link is from 2018 and it has not been resolved yet, almost 1 year later.

So ideally make at least a comment on the bug report, so it gets noticed that this is still a thing and that it is important. Otherwise you probably won't see any improvement, because this is clearly on hold or forgotten.

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: DenisChenu
The topic has been locked.
More
3 years 2 months ago #189344 by mediaformat
@holch Thanks for the bump on the issue.

I have just added my own 2cents to the issue.
The topic has been locked.

Start now!

Just create your account and start using Limesurvey today.

Register now