Directly on site or in .php template :
For those with more advanced experience placing pixels.
The JavaScript code should be placed in the Header or Footer across all pages,
Scroll down to the closing, and paste the tag code directly above it.
Experienced web developers can do what they normally would with partner pixels.
Example: See the examples below, using a sample footer.php file, but please note your file will probably be different. This process will work with any PHP code if you just find the footer.
Sample PHP before the pixel has been installed (sample only — don’t use in your website’s code).
<?php wp_footer(); ?>
<!– <?php echo MANN_THEME_NAME ; ?> created by m.man. – https://themes.mann.com –>
</body>
</html>
Sample PHP after pixel has been installed (sample only — don’t use in your website’s code).
<?php wp_footer(); ?>
<!– <?php echo MANN_THEME_NAME ; ?> created by m.man. – https://themes.mann.com –>
<script language='JavaScript1.1' src='//pixel.mathtag.com/event/js?mt_id=11111&mt_adid=222222&v1=ABC123&v2=&s1=&s2=&v3=&s3='></script>
</body>
</html>
Within a tag management solution:
The JavaScript Event Pixel can also easily be placed within 3rd party tag management solutions. Simply add the JavaScript Event Pixel in the tag management solution (following their workflow/guidelines), save and update to deploy across the site.
WordPress:
To add the Pixel to your self-hosted WordPress page, it is recommended to use a Plugin, such as “Insert Headers and Footers”
Once the Plugin is Installed and Activated,
In WordPress select Settings > Insert Headers and Footers
Paste the Pixel Code into the “Scripts in Footer” Section
Click Save
Squarespace:
In the left sidebar, navigate to Settings > Advanced.
Find Code Injection and paste your Pixel into the footer section.
Click Save
Blogger
In Blogger, create a backup of your template
Go to Dashboard > Theme > Edit HTML
Click inside the html window and scroll or search to find ‘</body>’
Paste the pixel code immediately before '</body>'