TrafficGuard WordPress Plugin
TrafficGuard Support avatar
Written by TrafficGuard Support
Updated over a week ago

Introduction

The TrafficGuard WordPress plugin allows you to easily add the Site Tracker Tag to your WordPress site so that you can track, measure and validate impressions, clicks and events in real-time.


Installation and setup

Installing the plugin is pretty simple.


πŸ’‘ Tip
​Recommended installation method

Installation of the plugin from the Wordpress plugin marketplace is recommended as it is easier to make sure you always have the latest plugin updates.


We also support installation from a zip archive


You can download the plugin archive here: TrafficGuard Wordpress Plugin.

Authentication

The WordPress plugin requires you to configure the following parameters:

Param Name

Example

Property ID

tg-001234-567


The Property ID needed for integration can be found in your property's settings in the TrafficGuard portal (https://dash.trafficguard.ai)


​How it works

When installed, the plugin will update pages of your site with our integration code and send data to the TrafficGuard servers for detailed analysis and a determination of the validity of the traffic.

No additional input is needed from you.

Example tag

<!-- TrafficGuard Integration -->
<script>
var dataTrafficGuard = dataTrafficGuard || [];
dataTrafficGuard.push(['property', '{property-id}']);
dataTrafficGuard.push(['event','pageview']);
(function() {
var tg = document.createElement('script');
tg.type = 'text/javascript'; tg.async = true; tg.src = '//tgtag.io/tg.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tg, s);})();
</script>
<noscript>
<img src="//p.tgtag.io/event?property_id={property-id}&event_name=pageview&no_script=1" width="1" height="1" border="0"/>
</noscript>
<!-- TrafficGuard End-->

πŸ’‘ Tip
After the plugin is installed we recommend a cache cleanup for your site.


Did this answer your question?