Google Analytics step-by-step

More
4 years 11 months ago #90882 by geracen
geracen created the topic: Google Analytics step-by-step
Hi,

Can someone help me and guide me step-by-step on how to add Google Analytics functionality?

As I understand:
1. Register and logon to GA.
2. Create an API key (the UA-xxxxxx)
3. The site in second step should be www.example.com (without the /index.php?sid=)
4. Put the {GOOGLE_ANALYTICS_JAVASCRIPT} in the template.
Here's the question:
1. Is it enough?
2. On which template page should I put the {GOOGLE_ANALYTICS_JAVASCRIPT}?
3. Does the answer to second point differ if I want the full analytics functionality (page by page)?

I've put the {GOOGLE_ANALYTICS_JAVASCRIPT} in startpage.pstpl.
I would appreciate a walk-through, as I see nothing in GA at the moment, so I must be doing something wront.

Thanks

Please Log in to join the conversation.

More
4 years 11 months ago #90888 by tpartner
tpartner replied the topic: Google Analytics step-by-step
You can add your API key in global settings and then insert the {GOOGLE_ANALYTICS_JAVASCRIPT} placeholder in startpage.pstpl of your template (it's already in the shipped templates) - docs.limesurvey.org/Global+settings&stru...r+LimeSurvey#General

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 11 months ago #90895 by geracen
geracen replied the topic: Google Analytics step-by-step
OK... Thanks.
Yes, I'm stupid. GA site had by default set the dates to 08th Jan - the reason I haven't seen anything.
So for the next generation here is a howto on using GA:

1. Register/login on GA. www.google.com/analytics/
2. Create a key (the site should not point to the survey, but to the part before index.php?) The key should be UA-xxxxx
3. Go to your surveys global settings in limesurvey.
4. Put the key in appropriate field (Google Analytics API Key). It's probably the best to set GA to track all pages as you can have more info.
5. You don't need to do anything in shipped templates, as the {GOOGLE_ANALYTICS_JAVASCRIPT} is already there.
6. Activate the survey.
7. Do the survey.
8. Go to GA panel mainsite. (select appropriate account in left-hand upper corner if you have more than one)
You should see some graphs with the statistics. Beware of the dates in upper right corner.

Please Log in to join the conversation.

More
4 years 11 months ago #90897 by tpartner
tpartner replied the topic: Google Analytics step-by-step
Well described!

Can you please update the wiki too?

docs.limesurvey.org/Global+settings&stru...r+LimeSurvey#General

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 11 months ago #90917 by tpartner
tpartner replied the topic: Google Analytics step-by-step
geracen, I just sent you a PM about your wiki access.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 11 months ago #90953 by geracen
geracen replied the topic: Google Analytics step-by-step
It seems that more accurate place to update wiki would be here:
docs.limesurvey.org/Creating+a+new+surve..._amp_data_management

What do you think?

Please Log in to join the conversation.

More
4 years 11 months ago #90954 by tpartner
tpartner replied the topic: Google Analytics step-by-step
Yeah, or at least put a link there back to the other page (and vice-versa).

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!