Create a Smart Pixel Snippet to configure additional tracking behavior within your Smart Pixel setup.
Prerequisites
Access to Tag Integration
A container using Smart Pixel
Procedure
Navigate to Tag Integration.
Open Smart Pixel Snippets.
Click Create Smart Pixel Snippet.
Enter a Name for the snippet.
Select the Position:
Head – Executes during the initial page load.
After <body> – Executes after the opening body tag.
Before </body> – Executes before the page finishes loading.
Instantly – Executes as soon as conditions are met.
Configure the tracking logic using the Smart Pixel configuration interface.
Click Create.
Result
The Smart Pixel Snippet is created and appears in the overview. You can now assign it to a container and use it with rules to control execution.
Best Practices
Use clear naming conventions to describe the purpose of the snippet.
Choose the position carefully to ensure correct execution timing.
Test snippets in a staging environment before using them in production.