Comments on: Add Custom Metric to GA Using Google Tag Manager https://mixedanalytics.com/blog/custom-metric-ga-google-tag-manager/ APIs, Sheets, and Analytics Thu, 25 Feb 2021 08:45:42 +0000 hourly 1 https://wordpress.org/?v=6.5.5 By: Ana https://mixedanalytics.com/blog/custom-metric-ga-google-tag-manager/#comment-10881 Thu, 10 Oct 2019 06:43:17 +0000 http://mixedanalytics.com/blog/?p=1751#comment-10881 In reply to Anonymous.

Nope, you don't need to use a data layer in this example, it's all done through GTM. If you were tracking something else, it could make sense, depends on what you're trying to implement. What do you have in mind?

]]>
By: Anonymous https://mixedanalytics.com/blog/custom-metric-ga-google-tag-manager/#comment-10879 Thu, 10 Oct 2019 05:45:58 +0000 http://mixedanalytics.com/blog/?p=1751#comment-10879 Shouldn't there be another step to add some javascript to the site? Like pushing to the datalayer?

]]>
By: Ana https://mixedanalytics.com/blog/custom-metric-ga-google-tag-manager/#comment-5875 Sat, 26 Jan 2019 12:30:09 +0000 http://mixedanalytics.com/blog/?p=1751#comment-5875 In reply to trish.

The example setup doesn't change your existing implementation at all, it just adds on an event tag. It's completely standard that UA fires on all pages, so don't change that, just add an event tag with a trigger for the page or event you're interested in.

]]>
By: trish https://mixedanalytics.com/blog/custom-metric-ga-google-tag-manager/#comment-5868 Fri, 25 Jan 2019 21:20:27 +0000 http://mixedanalytics.com/blog/?p=1751#comment-5868 In Your example, you have UA firing on a specific page.. how does this work if I already have Google UA firing on all pages.

]]>
By: Ana https://mixedanalytics.com/blog/custom-metric-ga-google-tag-manager/#comment-4783 Tue, 04 Sep 2018 05:40:17 +0000 http://mixedanalytics.com/blog/?p=1751#comment-4783 In reply to Tanner.

Good questions, thank you for your comment! Sure, in this example case you could add the custom metric to a Page View tag instead of an Event tag. The custom metric would be implemented in exactly the same way and have the same result. I chose to show an Event tag example though because 1) in my experience that's a much more common use case, and 2) it keeps the Page View tag clean. In this example, if you sent the custom metric with a Page View tag instead, now you'd need to either write some new trigger logic using JavaScript, or duplicate the original Page View tag and then add blog-specific triggers and exceptions to both versions, to ensure that the custom metric only gets sent on the tags on the blog pages.

I wouldn't populate the Value field since there's no measurable monetary value to someone viewing my blog. I guess I could make an estimate for it but I prefer to keep Values for something more concrete.

]]>
By: Tanner https://mixedanalytics.com/blog/custom-metric-ga-google-tag-manager/#comment-4778 Mon, 03 Sep 2018 22:46:32 +0000 http://mixedanalytics.com/blog/?p=1751#comment-4778 Why not just add the metric to the pageview trigger itself rather than creating an event & a custom metric just to record the custom metric? Btw, How is it that your Event tag does not have a Value field?

]]>
By: Track Number of Search Results in Google Analytics with GTM – Mixed Analytics https://mixedanalytics.com/blog/custom-metric-ga-google-tag-manager/#comment-1707 Wed, 10 Jan 2018 04:20:38 +0000 http://mixedanalytics.com/blog/?p=1751#comment-1707 […] Custom metrics need to be attached to other hits, like pageviews or events. You can check this post for more details on custom metrics: Add Custom Metric to GA Using Google Tag Manager.  […]

]]>
By: Is Data Layer implementation necessary to push Custom Metrics and Custom Dimension data from Google Tag Manager to Google Analytics – program faq https://mixedanalytics.com/blog/custom-metric-ga-google-tag-manager/#comment-1700 Tue, 09 Jan 2018 11:18:18 +0000 http://mixedanalytics.com/blog/?p=1751#comment-1700 […] Some guides I have seen seem to suggest you do not need to implement a Data Layer: http://mixedanalytics.com/blog/custom-metric-ga-google-tag-manager/ […]

]]>