How do I use Conversion Tracking

With Conversion Tracking it is possible to define different types of targets and display them in your Trackboxx.

This gives you the opportunity to monitor and evaluate important actions, page views, transactions, etc.

The following objectives / conversions can be defined:

  1. Clicks on hyperlinks
  2. Page impressions
  3. Submission of forms such as surveys or contact forms

 

Once you have created one or more target actions, they will appear at the bottom of your dashboard. The following data is displayed here:

  1. Name of the target project (you determine this yourself)
  2. Number of completions (how often was your target action triggered in the selected period)
  3. Value (you can give your target project a fixed value, e.g. 50) At this point the sum of the value is displayed
  4. Conversion rate - this is the percentage frequency of your target, measured by the total number of page views

Important! In the following examples we use an ID as an example. Of course you have to use your own ID's for your own target projects.

How can I use Conversion Tracking?

In order to be able to use Conversion Tracking, you must first select your website and create your first target project by clicking on the "Targets" button. Proceed as follows:

  1. Click on the top right of the gear wheel
  2. Then click on websites
  3. Now click on the button "Destinations" on the website of your choice
  4. In the following view you can create your first target action by clicking the button "Create target action"
  5. Give your target action a name, e.g. "contact form opened".
  6. Give a brief description of your target action

 

Your target project has been created and you will now see a code in the following format

<script>
      trackboxx('trackGoal', 'U7MQN7GLSQ', 0);
</script>

This code is the most important and we will now describe in the following steps how you can adapt and integrate it according to your desired goals.

Target actions by clicking on the appropriate link

Example: You would like to know how often the link to your contact form is clicked on your website.

There are 2 ways to set up this target action.

 

1. Onclick event

This means that an "event" is triggered when the corresponding link is clicked.

We now adjust our code snippets as follows.

<a href="/kontakt/" onclick="trackboxx('trackGoal', 'U7MQN7GLSQ', 50);">Kontakt</a>

If this code has been built in for the corresponding link, one target action per click will be triggered and displayed in your conversion tracking in your Trackboxx Dashboard.

In our example we have given a value of 50 per target action. You can also leave this value at 0.

 

Link tracking for WordPress menus using the Onclick method

The above example can of course be used without any problems for hyperlinks in the content, etc. In the WordPress menu, which is certainly the most frequently used for link tracking, this is not so easy by default. Therefore here is a short description of a possible integration.

  1. Install the plugin "Shortcode in Menus"
  2. After activation call up your corresponding menu via Design > Menus
  3. On the left side there is now a new selection "Shortcode"
  4. You enter a title and the code above and then click on "Add to Menu"

The plugin now shows the link in the menu including the Trackboxx script.

 

2. Track click through JavaScript

You can customise a hyperlink on your website by assigning an ID. For example:

<a href="/kontakt/" id="kontakt-link">Kontakt</a>

To use this link we use the following JavaScript in this example:

<script>
document.getElementById('kontakt-link').addEventListener('click', () => {
    trackGoal('U7MQN7GLSQ', 50);
});
</script>

Target actions for selected page views

Would you like to know how often a specific subpage is called up on your website? This is also possible with the Conversion Tracking of Trackboxx.

To do this, use the following code snippet on the corresponding page.

<script>
window.addEventListener('load', (event) => {
   trackboxx('trackGoal', 'U7MQN7GLSQ', 50);
});
</script>

Use your own ID here and for the value of the conversion you can enter a 0 or another value.

Target actions for the sending of forms

If you would like to monitor how often a contact form is sent or a newsletter is subscribed to, for example, you can implement this with the following code.

If you have access to the html code of your form, the following code can be used for submission.

<form method="post" onsubmit="trackboxx('trackGoal', 'OOZSABWKHD', 0);">

 

Since this is not possible with many forms, you can alternatively use the following code to record the successful transfer:

<script>
sk('form', 'init', {
  onSuccess: function(config) {
   trackboxx('trackGoal', 'OOZSABWKHD', 0);
  },
  // ...
});
</script>

If you do not know how to use the above options, the following option may be a solution.

After successfully submitting your form, you will be redirected to a new subpage, a "thank you" or "successfully submitted" page. On this page you will then include the code for a successful page view - as described under "Target actions for selected page views".

Such a redirect after successful submission of a form can be easily implemented with most WordPress plugins such as Contact Form 7, wpForms or Formcraft.

1610891520

You have questions, need support or just want to get something off your chest, then we look forward to your request.

Be the first to share this article: