Setup with other tracking consent solutions

If you're using a custom cookie banner or a consent solution not officially supported by Pathmetrics, don’t worry, you can still make everything work and stay fully GDPR compliant.

We’ve made it easy to manually control when tracking begins, so your visitors’ data is only collected after they give consent.

When do you need this?

You’ll want to use this method if:

  • You built your own cookie banner or popup

  • You’re using a third-party consent tool that’s not in our supported list (like Cookiebot, Complianz, etc.)

  • You want full control over how and when Pathmetrics starts tracking visitors

How to enable Pathmetrics tracking

To start tracking after a visitor accepts analytics cookies, a developer just needs to call one line of code:

window.pathmetrics.enableTracking();

You can place this line in your cookie banner script, right after the visitor agrees to analytics tracking.

What this does

This function activates Pathmetrics and allows it to:

  • Start tracking the visitor’s journey (source, pages, time spent)

  • Track the session only after consent is given

  • Respect privacy laws like GDPR

  • Until this function is called, Pathmetrics won’t track anything

Example: Custom banner setup

If you have a custom "Accept" button for analytics cookies, you can add something like this:

document.getElementById('accept-analytics').addEventListener('click', function () {
  // Your logic to save consent

  // Start tracking
  window.pathmetrics.enableTracking();
});

Replace accept-analytics with the actual ID or class you use in your button.

How to check if it’s working

  1. Open your site in a private/incognito browser window.

  2. Click "Accept" on your cookie banner

  3. Browse a few pages, then submit a form

  4. Go to your newly saved entry in your form builder

  5. Look at the Pathmetrics section to view the tracked path

If nothing shows up, make sure:

  • The consent function was called after the user agreed

  • The form plugin you’re using is one we support

Did this answer your question?
😞
😐
😁