GTM variable based on Datalayer
-
Hi Mozzers,
I'm having some troubles with implementing a GTM variable for one of my clients. I need to have a variable which takes out the quantity of products. Attached you can find a screen shot of the datalayer push. What's the path I need to setup in order to create a variable for the quantity?
Many thanks!
Sander -
Hi Alick,
I do not really understand your answer. I need to define a variable in GTM to make sure I can grab the quantity. Do you see any opportunities in the attached image?
What should be the daya layer variable name in GTM?
Many thanks,
Sander -
Hi Sander,
I've defined variable like this in data layer 'quantity': " + productquantity + " .
Thanks
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Tracking Pop Up Form Submission Events with GTM
Hello, I'm currently tracking contact form submissions any time a user clicks 'Submit' on a pop-up form. Once the form is submitted, the URL of the page remains the same (there is no /thank-you page or such like), hence needing to fire the Event based on a click. Problem is, even if the form is not actually submitted and a user just clicks the Submit button without filling in the fields, the Event will still fire. I know there is a way to ensure the Event ONLY fires when the form is actually submitted for real, but I don't know how to implement that in GTM. Any help most appreciated 🙂 Cheers, Gill.
Reporting & Analytics | | Cannetastic0 -
Number of goals larger than the events its bases on - WTF?
Hi all We configured a standard goal in Analytics that is triggered on an event. I have seen cases where the number of triggered events is larger than the goal completions due to limitations to how many times the same goal can be fulfilled within the same session, BUT in this case we got the opposite problem. We got more Goal Completions than we got events that is supposed to trigger the goal. Now also added a screenshot of how the goal is configured. As you can see its just configured to use the Category name of the event. Nothing fancy at all. How can that be possible? Again, more goal completions than events that is suppose to trigger it? Grateful for any help Fredrik AclZDUO
Reporting & Analytics | | Resultify0 -
How to Track Button Clicks as Events in Universal Analytic using New Interface of GTM?
Hello Experts, How to Track Button Clicks as Events in Universal Analytic using New Interface of GTM? Also is there anything code we have to do on website also to track buttons? Sorry to say request please don't just share any post, please give specific answer or share very relevant post. Your input is really very valuable to me. Regards, Mitesh
Reporting & Analytics | | bkmitesh0 -
Event Tracking on GTM 2.0
I have created new account in google tag manager 2.0 Now can any body help me how to track event in GTM 2.0? Like example this is the site - flipkart(dot)com if you little bit scroll down then there is 3 tab ( pfa of snapshot) - 1) new arrivals 2) Men's Bestsellers 3) Women's Bestsellers. So i want to know that if anyone click on tabs or button given above then 1) what steps to do in tag manager then 2) what changes i have to update on my site and 3) where to check in google analytic on which tab visitor has clicked. Please tell me tracking and code for only above given 3 buttons. As on web i am very confused looking lots of post. Your inputs very valuable to me.......................bkmitesh thESmOe
Reporting & Analytics | | bkmitesh0 -
Procedure of ecommerce tracking installation and set-up using GTM
Hello Experts, I have an e-commerce website. Google Analytic configured in Google Tag manager. Now in google analytic I have "ON" the Enable Ecommerce. Now i have to do ecommerce tracking installation and set-up? So can you please let me know the procedure? Regards, Jackin
Reporting & Analytics | | jackinmathis10 -
Potential Security Issues Installing Google Analytics GTM
Greetings MOZ Community!! My SEO firm plans has requested that Google Analytics GTM be installed on my website to better track goals and events. My developer will be responsible for installing the GTM script on my website and the SEO firm will actually configure GTM to track goals. Is anyone aware of GTM causing server errors/issues when installed? My developer claims that running GTM would create additional vulnerability to hacking. Is anyone aware of potential security risks from running Google Tag Manager? Once Google Tag Manager is installed, will it make the site more difficult for my developer to administer? Will there be increased risk of the code breaking? Overall, is GTM a big improvement over the existing version of Google Analytics? Is it worth the effort to install? My SEO firm is very much in favor of this upgrade. I would like to move forward provided there is no major downside. I look forward to feedback. Thanks, Alan
Reporting & Analytics | | Kingalan10 -
I have recently switched from a html site to a Wordpress based one...
Obviously all my indexed links have changed. How can I avoid loosing page rank?
Reporting & Analytics | | HeadlandMachinery0