Post by account_disabled on Mar 6, 2024 2:29:21 GMT
The head of the page. Using jQuery We can do the same thing as the above without touching GTM variables instead using a single HTML tag. In this case we need to use jQuery to do the same job that the GTM variables are doing. Screen Shot at ...png This HTMl tag is very similar to the one using variables except in place of each variable it uses jQuery to extract data from the page. Obviously this is only possible for pages that have jQuery loaded but equivalent expressions are possible in JS without jQuery. The advantage of this method is that you dont need to set up individual variables for each element all of the information is contained in this one tag.
On the other hand if you have variables being referenced by many different tags andor Greece Mobile Number List triggers it makes sense to use variables as if and when you need to change the definition of the variable it will apply to all tags and triggers without the need to change each individual one. Does it work This is all very well and good as long as Google actually sees and indexes the changes that are being made via GTM. as to whether Google can index and even then whether it respects markup and content implemented through JavaScript.
I have three examples from the last couple of months of changes being made through GTM and immediately respected by Google. . JSONLD structured data markup With the above example using both the jQuery and variable methods we can see rich snippets in search results where there is no structured data at all on the page before GTM applies it. The below snippet is from a dummy page where a product snippet has been applied. Screen Shot at ...png . Canonical tags We have also seen evidence of Google paying attention to canonical tags implemented through GTM. The below chart taken from STAT shows the number.
On the other hand if you have variables being referenced by many different tags andor Greece Mobile Number List triggers it makes sense to use variables as if and when you need to change the definition of the variable it will apply to all tags and triggers without the need to change each individual one. Does it work This is all very well and good as long as Google actually sees and indexes the changes that are being made via GTM. as to whether Google can index and even then whether it respects markup and content implemented through JavaScript.
I have three examples from the last couple of months of changes being made through GTM and immediately respected by Google. . JSONLD structured data markup With the above example using both the jQuery and variable methods we can see rich snippets in search results where there is no structured data at all on the page before GTM applies it. The below snippet is from a dummy page where a product snippet has been applied. Screen Shot at ...png . Canonical tags We have also seen evidence of Google paying attention to canonical tags implemented through GTM. The below chart taken from STAT shows the number.