How to test my tracking events

Testing your tracking events is a crucial step to guarantee you'll extract the best possible performances out of your campaigns.

Testing your events and your flow is essential to ensure that everything works according to plan before running campaigns.

Prerequisites:

  1. The Anytrack tag should be on your website's head section
  2. You should have a conversion source integrated and have the ability to run transaction tests (you can do that in most platforms and gateways like Stripe)
  3. You should have access to your Facebook Event Manager, Google Analytics or other platforms connected to your anytrack account

So what should I do if I want to test my event?

Follow the next steps:

  1. Go into the website that you are tracking.

  2. Open Inspect by clicking on the right button of the mouse:

Screen_Shot_2021-11-14_at_14_22_08.png

  1. Open the Console and paste the following code:

AnyTrack ('clientId')

Screen_Shot_2021-11-15_at_13_28_20.png

  1. Copy the clientID and paste it into the Conversion events section:

Screen_Shot_2021-11-15_at_13_30_30.png

  1. Now, you can go through the user journey and see each event being tracked:

Screen_Shot_2021-11-15_at_13_22_23.png

  • Refresh the page after each event.
  • InitiateCheckout will take between 5 and 20 seconds to show up.

What should I do if I can’t see all my events?

  1. To track conversions, you will have to connect your conversion source platform.

  2. If your conversion platform is connected and you still don't see the events, check the integration event logs.

    1. Go to the Integration section

    2. Look for the relevant integration

    3. Click on the event log tab, and check the errors

      Screen_Shot_2021-11-16_at_15_46_15.png

  3. In the case that you generate events via JavaScript code, double check that:

    1. AnyTrack tag is set before your event code on the page.

    2. Make sure the JavaScript syntax is correct. You can check the examples here.