How to Place a Static Pixel
The steps below outline how to place a TTD static pixel.
We highly recommend placing TTD static pixels through Google Tag Manager
Option 1: Google Tag Manager Placement (Recommended)
Step 1: Enable Click Variables (Prerequisite)
If you haven't enabled Built-in Click Variables yet:
- Go to Variables in the left sidebar.
- Click Configure in the top right of the Built-in Variables section.
- Check the boxes for Click Text, Click URL, Click Element, and Click Classes.
Step 2: Create or Update the Click Trigger
1.Open or Create Trigger:
Go to Triggers in the left sidebar and click New (or select your existing tag and click the Triggering section to add/edit a trigger).
2.Select Trigger Type:
-
Click inside Trigger Configuration.
-
Under Clicks, choose either:
-
Just Links: Fires only when a user clicks an HTML link (
<a>tag). -
All Elements: Fires on any clicked element (buttons, div tags, images, text).
-
3.Set Conditions for Click Text or Click URL:
-
Under This trigger fires on, select Some Link Clicks (or Some Clicks).
-
Set your matching rule using your desired variable:
-
To trigger by Click Text:
-
Select Click Text from the variable dropdown.
-
Choose an operator: equals (exact match) or contains (partial match).
-
Enter the exact button or link text (e.g.,
Contact UsorSubmit).
-
-
To trigger by Click URL:
-
Select Click URL from the variable dropdown.
-
Choose an operator: equals, contains, or matches RegEx.
-
Enter the destination link path or URL (e.g.,
/pricingor[https://example.com/signup](https://example.com/signup)).
-
Verification: Check that the match type (e.g., contains) accounts for case sensitivity or additional spaces in the text/URL.
4.Save and Test in Preview Mode:
-
Click Save.
-
Click Preview in the top GTM menu to open Tag Assistant.
-
Click the link/button on your website and inspect the Link Click or Click event in Tag Assistant to confirm your trigger condition evaluates to true and fires the tag.
Option 2: Header/Footer Injection
- Native CMS Settings (Easiest)
- Most modern website builders include a dedicated input field in their admin dashboard.
- Look under menu sections titled Settings, Advanced, Developer Tools, Site Options, or Custom Code.
- Look specifically for text fields labeled Header Scripts, Header Injection, or
<head>Code.
- Theme or Layout Template Editors
- If your platform uses theme files, locate the global layout file that wraps every page.
- Common file names include
header.php,theme.liquid,default.html, orindex.html. - Search within the file for the opening
<head>and closing</head>tags, or the closing</body>tag for footer placement.
- Tag Management Systems (Recommended)
- If direct injection settings are unavailable, install a container tag like Google Tag Manager.
- Once the tag manager snippet is placed once, you can inject scripts into the header or footer without altering theme files again.
- Plugins or Add-ons
- Many platforms (such as WordPress) support lightweight security-audited plugins (e.g., WPCode) designed specifically to inject scripts into headers and footers safely.
We do not accept liability if any issues occur when following these instructions to place the pixel. These are to be used as a guide on how to place the pixel in different scenarios. You may use them at your own risk.