If you are using Wordpress use the following steps to add the Visitor Queue Tracking Script:
Option 1: Use a plugin
- Go to the Visitor Queue Website Section, and if you don't see the website you are trying to add, add your website by clicking "+ New Website". Name your website and click "Save" and the tracking script will generate.
- Once you see the tracking script for the website you are trying to add, click "Copy to Clipboard". The tracking script is now copied to your clipboard.
- Install the plugin "WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager" on your WordPress website.
- Once installed, in the admin section of your WordPress site, on the left hand navigation panel click "Code Snippets" and then "Headers & Footers".
- Under the tab, "Page head and footer" paste the Visitor Queue tracking script to the section titled "Code to be added to the HEAD section of every page".
- Click Save. You're done! Your Visitor Queue account should start loading with data shortly.
- If your website uses caching, you may need to clear your website cache to see immediate results. Otherwise, you can wait for the cache to regenerate and the tracking script will begin to work.
Option 2: Add directly to the header.php file
- Go to the Visitor Queue Website Section, and if you don't see the website you are trying to add, add your website by clicking "+ New Website". Name your website and click "Save" and the tracking script will generate.
- Once you see the tracking script for the website you are trying to add, click "Copy to Clipboard". The tracking script is now copied to your clipboard.
- Go to the "Appearance" section of your Wordpress admin panel, then click "Theme Editor", then select "header.php"
- Use your search function and search for "</head>".
- Input the tracking code before closing the "</head>" tag.
- Save the tracking script by clicking "Update File". You're done! Your Visitor Queue account should start loading with data shortly.
- If your website uses caching, you may need to clear your website cache to see immediate results. Otherwise, you can wait for the cache to regenerate and the tracking script will begin to work.