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
-
GTM: Transaction value without tax as variable
Hi Mozzers, I'm trying to create a GTM variable for transaction value without tax. There is no datalayer field for this at the moment. e.g. I only have these fields in the datalayer: Revenue (€19.99) Tax (€3.47) Price (€19.99) No field with the price without tax. Is there a way to create a variable? Is it possible to work with a specific function? Or is it standard to implement an extra field in the datalayer? Many thanks,
Reporting & Analytics | | WeAreDigital_BE
Sander0 -
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 do I setup a logged-in vs. non logged-in custom variable in Google Analytics?
I found an example of the snippet to use: __gaq.push(['.setCustomVar,
Reporting & Analytics | | Evan34
1, // first slot
'user-type', // custom variable name
'visitor', // custom variable value
2 // custom variable scope - session-level
]); Once the visitor logs into your website, we change this code, accordingly: __gaq.push(['.setCustomVar,
1, // first slot
'user-type', // custom variable name
'regular-user', // custom variable value
2 // custom variable scope - session-level
]); How does the code know to change from 'visitor' to 'regular user' once a user logs in? Is the snippet only placed on the login page?0 -
How to configure custom dimension and metric in UA using with and without GTM
In universal analytic we can use more than 20 dimension and metric so can anyone tell me how to configure such feature 1) with google tag manager 2) without google tag manager. Like i read to this level - http://imgur.com/kjA4I91 but dont know what to do further? Regards, Jackin
Reporting & Analytics | | jackinmathis10 -
I am new to SEO. Would appreciate anyone share with me how can i further optimize my website to attract more visitors based on this scenario?
Hi all, Thanks and really appreciate for your time helping me out here, and i am very new to SEO. Just a brief introduction, our team have been developing a gaming review website (specifically targeting MMO game, facebook game, and browser-based game) since September 2011, and the website show significant improvement for the 1st month, and we got daily UV spiking up to 2k in November. The issue here is that the visitors start to become very stagnant, and even dropping now. Even though we try hard to publish more game reviews and there is NO IMPROVEMENT AT ALL for past 2 months in terms of number of visitors, and we have no idea how should we further proceed to attract more visitors...We have about 7 k site pages (however not all are with content). For the past 2 months it seems like there is nothing going on that proportionate to the effort we put in. Pretty discouraging, so we decided to sign up SEOMOZ to get SEO help from the community here. Some general questions we have: 1. Is it because of the the quality of the content we write ? (not enough keyword density, review too short, etc). 2. Is it because of the website designed not user friendly and not optimized? 3. Is it because of the general gaming trend, or other competitors? 4. Are we penalized by google by any chance? Are we spamming or anything wrong that deter our improvement? 5. Our main revenue source is on advertising, and currently we are using adsense. Would the ads placement affect anything? 6. Based on your knowledge and expertise, any advice would you give us? Would appreciate if you can take a kind look at the website to understand the scenario better: www.gameonline2.com, with 3 subdomain of: wiki.gameonline2; gameplay.gameonline2; cheats.gameonline2. For your reference, example our competitors are: www.onrpg.com; www.bbgsite.com; www.mmohut.com I would be happy to share with you any further information including google analytics if needed. I have report generated from SEOMOZ but i would appreciate the pros to help me take a look to give me a more complete ideas of how can i further improve to gain at least 10k visitors per day. Thanks again for your kind help and time. Andrew
Reporting & Analytics | | andrewsoh070 -
How to Turn Google Analytics Into Your Own Rank Tracker Using Custom Variables
I followed the instructions here http://www.seomoz.org/blog/gettings-rankings-into-ga-using-custom-variables, but cannot see the report in Analytics under "Custom Variables". As I dont know JS syntax, I assume the code is wrong. I just added dohertyjf's code under my normal tracking code. Can someone tell me if and where the error is? | | Much obliged!
Reporting & Analytics | | zeepartner0 -
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