2. Paste your Snippet
Log into your CMS and access your site’s HTML code. Paste your snippet (unaltered and in its entirety) into the header of your site’s main page.
Paste the snippet immediately before the closing </head> tag.
Some CMS’s have a separate section where you can easily add your tracking code. Make sure that you look into your CMS’s setup to ensure proper installation (see below for some common CMS’s that we integrate with).
There are two easy ways to add the tracking code to WordPress.
Method 1: Plugins (Recommended)
There are a variety of plugins available to add custom header and footer codes to your site. A simple light-weight plugin that we recommend is Insert Headers and Footers. Paste your tracking code snippet into the header on the plugin’s settings page.
Method 2. Paste Directly into Header
Open up the editor for the header.php file. Paste the snippet right before the closing </head> tag.