0
Welcome Guest! Login
0 items Join Now

How to Enable Google Analytics Demographic Info

    • lugnuts's Avatar
    • lugnuts
    • Sr. Rocketeer
    • Posts: 133
    • Thanks: 0

    How to Enable Google Analytics Demographic Info

    Posted 11 years 1 month ago
    • I am using the Google Analytics feature for the first time in J3 with the Metropolis template.

      I have it working but I don't get any results for demographics (age and gender). I used the UA code/keyword that Google gave me but it appears that there is a different method that needs to be used if one wants to get this info. It involves making some edits.

      Where do I make the edits described here...


      support.google.com/analytics/answer/2444872?hl=en&utm_id=ad


      Or do I read correctly in some of the Async discussions here that it should work without manual edits?
    • Ben Lee's Avatar
    • Ben Lee
    • Elite Rocketeer
    • Posts: 4193
    • Thanks: 42

    Re: How to Enable Google Analytics Demographic Info

    Posted 11 years 1 month ago
    • I haven't tested this yet, but I believe this is the right way to override and edit this code:

      You'll want to override the "JOOMLA_ROOT/libraries/gantry/features/analytics.php" file. So copy this file over to your template's "/features/" directory.

      Then you can find the line of code to edit in that file.

      You'll want to clear all cache and reload the page to see if it worked properly.
    • isherwood's Avatar
    • isherwood
    • Sr. Rocketeer
    • Posts: 142
    • Thanks: 5
    • Web developer

    Re: How to Enable Google Analytics Demographic Info

    Posted 11 years 1 month ago
    • I'd appreciate some indication from RT whether you'll be updating the default GA code for this anytime soon, or whether I should go ahead with overrides on my sites.
    • Ben Lee's Avatar
    • Ben Lee
    • Elite Rocketeer
    • Posts: 4193
    • Thanks: 42

    Re: How to Enable Google Analytics Demographic Info

    Posted 11 years 1 month ago
    • isherwood's Avatar
    • isherwood
    • Sr. Rocketeer
    • Posts: 142
    • Thanks: 5
    • Web developer

    Re: How to Enable Google Analytics Demographic Info

    Posted 11 years 1 month ago
    • Fair enough. Thank you.

      I did make the changes in an override, and it's all working well according to the page source, but Google refuses to validate for demographics. I scrutinized the syntax and see nothing wrong. I wonder if GA expects its stuff in a separate script tag? The site in question is at humanistsofmn.org . Any ideas appreciated.
    • Ben Lee's Avatar
    • Ben Lee
    • Elite Rocketeer
    • Posts: 4193
    • Thanks: 42

    Re: How to Enable Google Analytics Demographic Info

    Posted 11 years 1 month ago
    • I checked the source code your site is showing and it appears to be correct from what I can tell as well.

      It is between script tags, so it should be working fine.

      Sometimes Google takes quite a while to recognize a change in your site's code. I'd give it a good 48 hours as Google goes off cached pages a lot of the time. I'm talking about cached on their servers, not your site's cache.

      Lastly, you may want to update your privacy policy for your site per Google's recommendation:
      https://support.google.com/analytics/answer/2700409
    • isherwood's Avatar
    • isherwood
    • Sr. Rocketeer
    • Posts: 142
    • Thanks: 5
    • Web developer

    Re: How to Enable Google Analytics Demographic Info

    Posted 11 years 4 weeks ago
    • Thank you for the reply and your effort, Ben. As of this morning GA still won't validate. We continue to get standard tracking data. I'll report back if this changes.

      Update: I've decided to use the Skip Validation option. We have some data for gender, etc., which would seem to indicate that it's working.
    • Ben Lee's Avatar
    • Ben Lee
    • Elite Rocketeer
    • Posts: 4193
    • Thanks: 42

    Re: How to Enable Google Analytics Demographic Info

    Posted 11 years 4 weeks ago
    • I may try it on one of my sites in the next month, so I'm not sure what to tell you from here. I think this is still in Beta for Google though. That may make it tougher to diagnose, but really not sure.
    • sbs_jr's Avatar
    • sbs_jr
    • Sr. Rocketeer
    • Posts: 202
    • Thanks: 1

    Re: How to Enable Google Analytics Demographic Info

    Posted 11 years 3 weeks ago
    • Corvus will not validate as is.. I will try some editing... Will also post in the Corvus template forum
  • Re: How to Enable Google Analytics Demographic Info

    Posted 10 years 9 months ago
    • Hi there! Curious if there has been any updates on how to manipulate the Google Analytics code to be able to capture the demographic data.
    • Last Edit: 10 years 9 months ago by Sharp Auction Engine.

Time to create page: 0.067 seconds