The event tracking feature in the Tracking add-on enables you to track events on other websites than your own. E.g., you are linking to an online store and get paid for every sale you brought in. This feature allows you to offer the other website an affiliate system, when you don’t have one on their own.

Please note that this feature is experimental and therefore should only be used and setup by users who:

  • understand the instructions below
  • have access to the database and PHP source code of their own website
  • have the knowledge to help the external website to get set up

We don’t intend to develop this feature further unless it reaches a high priority on the feature requests list or we are hired to do so.

Enabling event tracking

The event tracking feature is not activated by default. In order to activate it, add the following line to your wp-config.php:

You should now find the Events option in the Advanced Ads menu.

Adding a Client

For each external event you want to track, you need to create a client first.

New Client form

Once you created the client, click on view script in the client list.

The page you see now contains all additional setup information to implement tracking on the external website.

Find some ideas for implementation below.

Event ID

The “id” parameter in the $event  array on the external site could be used for any string you like. It might be useful to add an order number or a client name here to easier identify commissions afterwards.

Handling affiliate visits

As an affiliate, you might want to link to any single page on the the external website, but you only get a commission when a specific event on another page is happening.

One way to do that is by adding a parameter to the affiliate link that sets a session or cookie variable at the first page impression on the external page. This value can be used as a condition to determine whether the tracking should be send or not.

Managing Events

Events are tracked and displayed in UTC time.

In order to manipulate clients and events, you need to directly access the tables in the database (see below).

What else you need to know

The event tracking module adds two new tables to your database, which need to be removed manually, once you don’t need them anymore.

  • {prefix}_clients
  • {prefix}_events

Be aware, that tracking user data from an external site on your might be against the local privacy laws and needs to be documented accordingly.

 Add-On Manuals