Support Center

Use the Website Tracking Script

Last Updated: Oct 05, 2017 10:46AM EDT
PestPac Lead Management users can take advantage of closed loop marketing tracking by combining our lead forms, campaigns, and a tracking script. All of these will work together to properly attribute a lead to a specific campaign when it enters PestPac. You will truly understand the ROI of your marketing efforts.  

Create a Default Campaign:

First, you need to create a default campaign for web leads. Instructions for creating campaigns are here: Create or Edit Campaigns

For your default campaign, we recommend that you create a general campaign with the name "Organic Traffic". This will be the automatic campaign assignment for any lead who fills out a form and did not come from a specific marketing effort. 

Next, add the script to your site. This script should go in the footers of your pages. 

Tracking Script Sample

<script src=""></script>
        accountId: "000000",
        ww_campaign_default: "CAMPAIGN1234"

Replace the Following Information in your Code:
  • AccountId - This is your six-digit PestPac Company Key. 
  • ww_campaign_default -  This is the campaign code you created when making your campaign.

Track Specific Campaigns:

When driving traffic to your website, you can append the link you are using for your marketing campaigns with a custom UTM string:

To track specific campaigns, use a UTM string in the URL to replace the default campaign in the tracking script. 
  • ww_campaign="CAMPAIGNID"

As noted above, the "CAMPAIGNID" is the 10 character or less campaign code you created for the campaign in PestPac. 

Adding this string to the UTM strings you should already have on the page will not only attribute the lead (who filled out a form) to the correct campaign but also replace any phone numbers on the page with a campaign tracking number if you have set one up. 


Contact Us
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found