Tag Manager Third-Party Container.
Methods
static activate(locopt)
Trigger Third-Party tags matching ATI Site IDs or Path conditions.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
loc |
string |
<optional> |
Tag location ('Footer'... any other value is interpreted as Header) |
static comparePath(p1, p2) → {boolean}
Compare page path to filters
Parameters:
Name | Type | Description |
---|---|---|
p1 |
string | Path to compare (wildcard '*' allowed, alone or at the end) |
p2 |
string | Filters to compare (separated by |), possibly absolute URL (compared to current one) |
true if path matches filter
boolean
static setAsyncScript(src, fn, loc)
Add asynchronous script.
Parameters:
Name | Type | Description |
---|---|---|
src |
string | javascript file url |
fn |
function | Function to be executed once javascript loaded |
loc |
string | Tag location ('Footer'... any other value is interpreted as Header) |
static writeScriptCode(HTML, isFooter)
Write JavaScript code
Parameters:
Name | Type | Description |
---|---|---|
HTML |
string | (started by '<') or Javascript code (any other start) to be written. |
isFooter |
boolean | true if it must be written in footer, false if header. |