Comments on: Google Optimize - How to Track Button Clicks https://mixedanalytics.com/blog/google-optimize-track-button-clicks/ APIs, Sheets, and Analytics Thu, 25 Feb 2021 09:16:56 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Ana https://mixedanalytics.com/blog/google-optimize-track-button-clicks/#comment-22875 Thu, 25 Feb 2021 09:16:56 +0000 http://mixedanalytics.com/?p=7116#comment-22875 In reply to Retay.

Sure, their A/B testing functionality is for testing two or more variants of a page.

]]>
By: James Hamlyn https://mixedanalytics.com/blog/google-optimize-track-button-clicks/#comment-22868 Thu, 25 Feb 2021 05:26:49 +0000 http://mixedanalytics.com/?p=7116#comment-22868 In reply to Magda.

Please tell me how you fixed that?

]]>
By: Retay https://mixedanalytics.com/blog/google-optimize-track-button-clicks/#comment-22686 Fri, 19 Feb 2021 09:46:10 +0000 http://mixedanalytics.com/?p=7116#comment-22686 Is it possible to run A/B/C test using Optimise.

]]>
By: Surendra Dhote https://mixedanalytics.com/blog/google-optimize-track-button-clicks/#comment-22685 Fri, 19 Feb 2021 09:42:46 +0000 http://mixedanalytics.com/?p=7116#comment-22685 Loved it. Would like to test it on my site.

]]>
By: Magda https://mixedanalytics.com/blog/google-optimize-track-button-clicks/#comment-17105 Tue, 26 May 2020 06:03:56 +0000 http://mixedanalytics.com/?p=7116#comment-17105 In reply to Magda.

Never mind, I fixed it!

]]>
By: Magda https://mixedanalytics.com/blog/google-optimize-track-button-clicks/#comment-17075 Mon, 25 May 2020 11:37:11 +0000 http://mixedanalytics.com/?p=7116#comment-17075 Hi Dear Ana! Very helpful article, thank you very much.
I followed it step by step but encountered one problem - when adding a custom objective, the 'Event Action equals SOME_NAME', my SOME_NAME is returning 'No matches', even though I created a proper tag in GTM. Do you have any idea what could be causing that? Any help greatly appreciated!

]]>
By: Ste https://mixedanalytics.com/blog/google-optimize-track-button-clicks/#comment-16691 Wed, 13 May 2020 09:07:12 +0000 http://mixedanalytics.com/?p=7116#comment-16691 Work fine now, thanks!

]]>
By: Ana https://mixedanalytics.com/blog/google-optimize-track-button-clicks/#comment-16679 Wed, 13 May 2020 04:01:08 +0000 http://mixedanalytics.com/?p=7116#comment-16679 In reply to Anonymous.

Hi there, it looks like this was actually a content-display issue with the blog, where the ">" character got converted to "& gt;". I've just updated the post to convert that character back to its original value, can you please try again? I apologize for the confusion.

]]>
By: Anonymous https://mixedanalytics.com/blog/google-optimize-track-button-clicks/#comment-16660 Tue, 12 May 2020 16:20:13 +0000 http://mixedanalytics.com/?p=7116#comment-16660 In reply to Ste.

sorry I use classes: "_cta" for both buttons, "_center" on the first and "_sidebar" on the second

]]>
By: Ste https://mixedanalytics.com/blog/google-optimize-track-button-clicks/#comment-16659 Tue, 12 May 2020 16:18:19 +0000 http://mixedanalytics.com/?p=7116#comment-16659 Hi
Thanks for this great post, really helpful. My classes are named slightly different, as I don't want to track the color, but the position, so I used "center" and "sidebar".
However when Publishing in GTM, I get this error:
Error on line 3, character 51: Parse error. ')' expected

Here's the JS:
function() {
var buttonClasses = document.querySelector("._cta").classList;
if (buttonClasses.value.search("_center") & gt; - 1) {
buttonPosition = "center";
} else {
buttonPosition = 'sidebar';
}
return buttonPosition;
}

Could you help please?

]]>