Can I customize my Google Analytics tracking code snippet on one page only?

Highlighted
Tourist
4 0 1

Here is my use case:

I'd like to add a custom dimension to a pageview hit, but only on one page.

The GA docs say I need to modify the tracking code to look like this:

ga('send', 'pageview', {
  'dimension15':  'My Custom Dimension'
});

Anyone know how I could do this? Open to alternatives.

Thanks much!

0 Likes
Highlighted
Tourist
4 0 1

This would be easy with Google Tag Manager, but I'm not able to find any sort of guide or documentation on this (yet)...

0 Likes