add-script-via-gtm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
add-script-via-gtm [2024/03/15 10:39] – removed - external edit (Unknown date) 127.0.0.1add-script-via-gtm [2024/03/15 10:58] (current) – [Add Tag] evaldas-luksys
Line 1: Line 1:
 +====== Add script via GTM ======
  
 +
 +==== Steps: ====
 +
 +  - Create DOM Ready trigger (**if you already have this trigger, let's move to the next step**)
 +  - Add Tag
 +  - Publish changes
 +
 +==== Create a DOM Ready trigger ====
 +
 +Step 1: Click to create new trigger
 +
 +{{:online:gtm:script-via-gtm:create-new-trigger.png|}}
 +
 +Step 2: Enter trigger name and click on trigger configuration section
 +
 +{{:online:gtm:script-via-gtm:dom-ready-trigger-setup-step-1.png|}}
 +
 +Step 3: Choose DOM Ready trigger
 +
 +{{:online:gtm:script-via-gtm:dom-ready-trigger-setup-step-2.png|}}
 +
 +Step 4: Save the new trigger
 +
 +{{:online:gtm:script-via-gtm:dom-ready-trigger-setup-step-3.png|}}
 +
 +==== Add Tag ====
 +
 +Step 1: Click to create new tag
 +
 +{{:online:gtm:script-via-gtm:new-tag.png|}}
 +
 +Step 2: Enter tag name and click on tag configuration section
 +
 +{{:online:gtm:script-via-gtm:create-tag-step-1.png|}}
 +
 +Step 3: Choose tag type - Custom HTML
 +
 +{{:online:gtm:script-via-gtm:create-tag-step-2.png|}}
 +
 +Step 3: Add the script to the HTML section and choose our created DOM ready trigger
 +
 +{{:online:gtm:script-via-gtm:create-tag-step-3.png|}}
 +
 +Step 4: Save the tag
 +
 +{{:online:gtm:script-via-gtm:create-tag-step-4.png|}}
 +
 +==== Publish changes ====
 +
 +Step 1: Click to submit changes
 +
 +{{:online:gtm:script-via-gtm:submit-step-1.png|}}
 +
 +
 +Step 2: In this step we can see our changes and we can click to publish them
 +
 +{{:online:gtm:script-via-gtm:submit-step-2.png|}}
 +
 +Step 3: Here we can enter Container version name and description and click Continue. Otherwise, if we don't want to enter anything here, we can just click to Skip
 +
 +{{:online:gtm:script-via-gtm:submit-step-3.png|}}
 +
 +**Now the script should be added to your website.**