Is it still possible to push a custom dimension on page view in GTM? - google-analytics

Is it still possible to push a custom dimension on page view using GTM as pictured here? I set up custom dimensions in GA but do not see the options for adding custom dimensions under More Settings for Page View in Tag Manager. If it possible what steps do you have to complete to enable it?
I don't have an option for this, and the image says "Track Type" which seems to be from an older version of the GUI.

You need to tick the checkbox before "Enable override settings in this tag" (that, or set your custom dimension via the settings variable - but then they might be also used on events).

Related

One of my Custom Dimensions not showing up completely on Google Analytics?

I created 3 custom dimensions through Google Tag Manager (added them as Data Layer Variables). Then, I added custom fields to my pages for these 3 custom dimensions.
After waiting about 24 hours, I checked the three custom dimensions on Google Analytics and two of them have showed up for all of the pages. The last one is showing up for maybe 4-5 pages, but not all of them. It's now been more than two days and the other pages still haven't populated with the last custom dimension.
Is there a quicker way to see if this third custom dimension is showing up for all of the pages with the designated custom field?
Since this is being done on a test site, most pages have not been visited a ton. Not sure if this can also matter for how long it takes Google Analytics to populate the data.
Get the chrome extension 'GA debugger' and go yourself to the site. On the console you ll see each hit sent to GA and all the fields that are being populated.
PS: Custom dimensions ll show up as 'cdX' where X is the number of the dimension.
I think you are passing the custom dimensions along with pageveiw. you can check the GA tags that are firing in network tab of your browser only to validate
In your browser access inspect element by right cliking on website and select network tab you can check the screenshot mentioned in the below URL to make all setting required to see GA tags in network tab
http://imarunkumar.blogspot.in/2016/08/blog-post.html
And then reload the page and you can see the Google analytics tags firing, check your tags if custom dimensions are being sent in the tags.
I hope you have provided the right custom dimension index number in GTM while creating the tags. Assume you are sending data to custom dimension 1,2,3 the in tag you can see the values sent.
cd1:xxxxxx
cd2:xxxxxx
cd3:xxxxxx
This confirms that Custom dimension tags are being captured on the page and sent through GA tags to Google analytics.
What if you can see these custom dimension beign sent through the tags but you cannot see the same in reports.
Here the custom dimension configuration you did on the analytics property needs to be reviewed.
As you are collecting all the custom dimension at every page the scope for these custom dimensions should be set at "HIT" level.
Let me know if you are facing any issue in checking them according to the instructions provided above.

How to use the Custom dimensions and Metrics of Google Analytics in Google Tag Manager?

I've been working with Google analytics since now, and as a part of the new update, I need to implement everything using Google Tag Manager. How do I use my custom dimensions and metrics of Ga in GTM? How's Data layer connected with GA's dimensions and Metrics? I'm very new to this tools, so please pardon me for any mistakes in the question and feel free to edit it. I'm confused with the other sources in Google and other documentations regarding these topics.
Create a Universal Analytics tag, click the "enable overriding settings in this tag" checkbox, go to more settings, custom dimensions, click the "add custom dimension" button, enter in the left field the numeric index as obtained via the GA property settings and in the right field your value/variable. Similar for metrics.

Need to Implement Custom Dimensions through Google Tag Manager

I have created virtual pageview tag successfully for " New Registrations" via Google Tag manager.
Now, I want to add two custom dimensions using same Tag i.e. Customer ID and UserRole.
Actually, I am not sure where to add the code to get dynamic values for CustomerID and UserRole. Can you guide me to complete this?
Custom dimensions are configured either in the Google Analytics settings variable (if you use this), or in the tag via the "More Settings" >> "Custom Dimensions" settings or both.
If you use a settings variable and want to add extra dimensions to a specific tag you need to tick the "Enable override settings" checkbox.
In the settings you enter in the first field the numeric index of the dimensions (you can look this up in the property settings of your GA account where you have created the dimensions), the second field takes the variable with a value (or a simple string if it's not a dynamic value).

Using custom dimensions in the Google Analytics Spreadsheet Add-on

In Google Analytics, I am able to create a report based off a custom dimension, let's call it Battery Level. In the Google Analytics Spreadsheet Add-on I can create a report with the standard dimensions. However I can't specify my custom dimension in my report. Using the report wizard, or writing the parameters by yourself doesn't allow for selecting any custom dimensions.
This seems at odds with the implementation of the rest of the add-on, which can connect back to your GA account for other customised aspects, such as selecting your custom View (Profile) ID / ids.
How can I do this?
I found my answer here
"...first load the GA Add-On from the Chrome extension gallery, then choose “Create new report” and select your GA view. To access custom dimensions (or metrics), you will need to select “Custom Dimension XX”, and change the XX later. When you click “Create Report” you’ll see the “Report configuration” tab."
and...
"Edit your report configuration by changing the XX in “ga:dimensionXX” to the actual dimension index number, as in “ga:dimension5”. To find your custom dimension index numbers, go to the GA admin panel and look under Property Settings > Custom Definitions > Custom Dimensions."

How to set custom variables through the new analytics.js of GA

See the Guide https://developers.google.com/analytics/devguides/collection/analyticsjs/custom-dims-mets
I cant find any way to track Custom Variables like the old tracking js "ga.js": https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables
_setCustomVar(index, name, value, opt_scope)
Anyone can help?
thanks!
Custom Variables don't exist any more in analytics.js (aka Universal Analytics). It has been replace with Custom Dimensions and Metrics that are more flexible and powerful.
Advantages of Custom Metrics and dimensions:
They can be used in filters
They are first class citizens in the interface, so you will see the custom variable name in the interface (instead of the generic "Custom Variable 5")
Configured in the interface
Metrics that are aggregated (not possible with custom vars)
20 custom dimensions + 20 custom metrics available, instead of only 5 custom variables
In order to use Custom Dimensions/Metrics, you need to configure them on the interface. Go into admin, drill down into your web property and then there is a tab for "custom definitions".
Then when you track it, you just need to track the value and the id of the custom property eg:
ga('send', 'pageview', {
'dimension15': 'My Custom Dimension'
});
This will send a pageview with the custom dimension attached to it.
You can also set one on the page that will be applied to any pageviews or events that happened on the page.
ga('set', 'dimension5', 'custom data');
Note that only setting it won't send to GA, so if you decide to use set make sure you call a send afterwards at least once on the page to actually send that data to GA.
More Info: Developer Docs

Resources