How do I add the GPT validation tag to my site for Google’s review?

In order to have your site fully approved for Raptive, it’s necessary to get Google’s approval. To submit your site to Google for review, the GPT validation tag we’ve shared with you (either through email or through your Setup Assistant) must be present on your site. This tag allows Google to match your domain with our request to manage the ad inventory for that site. The tag will have no effect on any ads you may currently be running. 

The GPT validation tag must be present site-wide, so we recommend adding the tag into the header or footer of your site. Once your new ads are installed, we’ll remove the tag for you.

If you need some help adding the tag to your site correctly, here are some tips!

If your site is on WordPress

Many WordPress themes come with a built-in area to add JavaScript or header/footer scripts where you can add the GPT validation tag. If you can’t find it, or your theme doesn't have this area, you can install a plugin like WP Code - Insert Headers and Footers and use that to add the GPT tag.

If you’re running WP Rocket on your site, our validation code could potentially get optimized, which would prevent the validation code from working correctly. You will need to exclude the validation script from your WP Rocket settings by doing the following:

1. Head over to your WP Rocket settings and click on File Optimization:

2. Scroll down to the JavaScript Files section.

3. Copy the following 2 exclusion lines:



4. If you have the 'Minify JavaScript files', 'Delay JavaScript execution', and 'Load JavaScript deferred' settings enabled, paste the two exclusion lines from Step 3 in the Excluded JavaScript Files box located under these settings:



Save your changes and let us know once you've completed these steps.

If your site is on Blogger

In your Blogger account, navigate to Theme > More > Edit HTML. Place the code before </head> and click Save.

If your site is on Squarespace

If you have a premium Squarespace account, you can navigate to Settings > Advanced > Code Injection. Squarespace has a nice how-to video here if you’d like more direction on that.

If your site is on Xenforo

In Xenforo, add the code to the page_container_js_head template.

Don’t see your platform listed here?

If you have a custom CMS or your site is on a platform not listed here, just know that the code should be added before the closing </head> tag. Most platforms have an area to add custom JavaScript or edit an HTML template. If you can’t find where the code needs to go for your site, just reach out and we’ll be happy to help you find the right spot.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Send a message

Want to join Raptive? Apply here!