Goals, Pageview and Custom Parameters

Aqvil
3 min readMar 1, 2022

--

Goals

First of all, you need to understand the concept of a goal. A goal is something that you want to track that the already existing analytics are not tracking — anything from a button click, downloads, specific page view, like a thank-you page after a checkout…etc.

Pageview

The pageview goal is the easiest to set up and the conversion of the goal will happen once a visitor reaches a certain specified page.

A good example would be when you have a ‘thank you’ page after the conversion happened (newsletter, purchase, form submission…etc) where the user will land on after.

Custom

Custom goals will require some extra code implemented to the tracked website, which is specified when you create a new goal from the dashboard.

A custom goal is mainly used when you want to track a specific event that happens on your website, which can’t be tracked with the pageview method.

Some examples of where custom goals will shine are:

  • Tracking clicks on external links.
  • Tracking more advanced form submissions.
  • Tracking clicks on specific parts of your pages.
  • Here is what a javascript snippet would look like for goal tracking:
analytics.goal('my-goal');

When this code will trigger inside of your page, the goal conversion will be triggered as well on our side.

Custom parameters

If you wish to identify your visitors via custom parameters, then here is how you can do that.

This feature can be helpful when you have a website that has a membership system where users can log into your website. If they are logged in, you can specify their identifier (ex: email, user_id, name..etc) with our tracking code.

Why? This becomes very helpful when trying to understand what your users are doing and what problems they encountered on your website.

You can do this by simply adding data-custom-parameters='{JSON_PARAMETERS_HERE}' like in the following example:

<script async src="https://aqvil.com/pixel/12345678910111213" data-custom-parameters='{"name": "John Doe", "email": "john@example.com"}'></script>

If that extra parameter is provided then, in the Visitors page you will see the icon near the visitor which tells you that that specific user has been identified with custom parameters.

Opt-Out

We do take privacy and your privacy seriously and we provide you and your users the ability to opt out of any website that uses our tracking system.

If you are a website owner that uses our tracking services then, we highly recommend you provide the following option for your users to be able to opt-out of the tracking.

The opt-out process is straightforward and can be done by simply accessing any website that has our tracking code installed and adding the following query parameter in your browser: ?pixel_optout=true

So if your website is https://domain.com/ and you have our pixel tracking code installed, you and your users can opt-out of the tracking by accessing the following URL https://domain.com/?pixel_optout=true.

By doing this, we set a local storage variable in your browser that tells our pixel tracking code to stop and do not further execute. Clearing your local storage, changing the browser or running the site in incognito will enable tracking again as the Opt-Out variable is not set anymore.

--

--

Aqvil
0 Followers

View how visitors are really using your website, collect user feedback and turn more visitors into customers.