Custom dimensions

Created on 15 August 2016, over 8 years ago
Updated 8 January 2025, 3 months ago

I am trying to add a custom dimension to Google Analytics, but I noticed that the first 3 dimensions are used for Main Agency, Sub Agency and Code Version. I added those dimensions to my GA Property settings, as well as the custom dimension that I am trying to track. However, none of these items seem to be tracking in GA. The Google Analytics Debugger Chrome extension thinks that they should but, alas, no.

The code from your module returns the following in the debbuger:

Running command: ga("create", "UA-XXXXXXXX-X", "example.com", {name: "GSA_ENOR0", allowLinker: true, cookieExpires: 63072000})
Running command: ga("GSA_ENOR0.set", "anonymizeIp", true)
Running command: ga("GSA_ENOR0.set", "forceSSL", true)
Running command: ga("GSA_ENOR0.set", "dimension1", "[Main Agency]")
Running command: ga("GSA_ENOR0.set", "dimension2", "[Sub Agency]")
Running command: ga("GSA_ENOR0.set", "dimension3", "20150519 v2.01 - Universal Analytics")
Running command: ga("GSA_ENOR0.send", "pageview", "/")


I added code to push data for a custom dimension. The debugger output is as follows:

Running command: ga("create", "UA-XXXXXXXX-X")
Running command: ga("GSA_ENOR0.set", "dimension4", "[Custom Dimension Data]")
Running command: ga("GSA_ENOR0.send", "pageview", "/")

I am expecting to find results in GA under Behavior -> Site Content -> All Pages and then choosing the Secondary Dimension.

Any thoughts?

πŸ’¬ Support request
Status

Closed: outdated

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Tom.Camp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States dcam

    Since both Drupal 7 and Universal Analytics are end-of-life I am closing this old support request. I'm sorry that you didn't receive a response.

Production build 0.71.5 2024