3

I have a WordPress website and I setup a custom dimension in Google Analytics to log, as a custom dimension, the blog post authors user ID. This worked fine.

I have since changed this to now log the username instead of the ID and this is also working fine and showing in the reports.

Hovever, although it now logs the username, I'm still getting logs in the reports which are using the ID instead of the username. Why is this happening?

4
  • Probably a caching issue - old code will be run for a time during the switch over. In my experience, after changing how a custom dimension is used you can get the wrong variables being sent up to 3 months later.
    – L Martin
    Commented Jun 23, 2017 at 10:10
  • Thanks for your comment. Are you referring to cache at Google Analytics end, cache of the website or cache within the users web browser?
    – Mat
    Commented Jun 23, 2017 at 10:54
  • Client cache - so that covers crawlers as well as browsers. The clients could be running older code for a while, more stubborn ones may ignore server directives to do otherwise. Although modern browsers should respond to an update in e-tag headers
    – L Martin
    Commented Jun 23, 2017 at 11:10
  • What is the scope of the custom dimension? Go through - support.google.com/analytics/answer/2709828#scope for a better understanding of scope Commented Jul 3, 2017 at 11:53

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.