Prints Tag Manager's tracking script.

Kuvaus

This tag's content belongs to the content printed by the {Extensions} tag. Use this tag instead of the {Extensions} tag.

Use this tag only if you'd like to use multiple Tag Manager accounts in your store, or if you'd like to use Tag Manager only in certain store versions (in such case, leave the extension's details empty in the admin panel).

Syntaksi

{GoogleTagManagerScript(
    account: string
)}

Näkyvyys

Attribuutit

account:

Defines the Tag Manager account that should be used for tracking.

Allowed values: the container ID of the Tag Manager account (e.g. 'GTM-K5TV4BV')

after/before:

By using the after and before attributes you can define content that is output either after or before the tag's output.

Allowed values:The HTML and Interface markup

E.g.

  • before: '<p>Tämä merkkaus näkyy ennen tagin omaa sisältöä.</p>'
  • after: '<p>Tämä taas näkyy tagin oman sisällön jälkeen.</p>'

If the tag does not produce any content, neither the content of the after and before attributes will be output.

escape:

Adds an escape character before quotation marks in the output.

The attribute makes it easier to process the tag-produced content when using JavaScript.

Allowed values:true/false. The default value is false.

or:

Defines alternative content that is displayed if the tag itself does not produce any content.

Allowed values:The HTML and Interface markup

E.g. or:'Sisältöä ei löytynyt.'