Pulling URL from Product Page with Attribute Selector?

  Kiến thức lập trình

Im attempting to implement schema markup via Google Tag Manager.

For example, one piece of code that would dynamically pull in unique urls from product pages.

In plain jane terms, it would be “if class = “X” then <meta name itemprop=”image” content=”(URL of the image from within this specific class)>”

I’ve tried an Element Visibility trigger, with a Selection Method of “CSS Selector” and Element Selector = “head[prefix~=”product”]”

New contributor

Brody Hetland is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT