What is the Audiohook Conversion Tag?

The Audiohook conversion tag is a lightweight and privacy-focused client-side tracking solution designed to help you understand what events and conversions your audio campaigns are driving. Similar to other ad platforms, it allows you to:

Essentially, the Audiohook conversion tag provides you with crucial data to optimize your audio campaigns, all while prioritizing user privacy.

If you had previously installed the Audiohook pixel, please update that implementation using the Conversion Tracking Tag.

How to Install the Audiohook Conversion Tag

Installation is straightforward and only requires adding a small snippet of code to your website's <head> section.

Step 1: Add the Analytics Script

Copy and paste the following code into the <head> section of every page on your website:

HTML

<script async src="<https://js.audiohook.com/analytics.js?audiohookId=YOUR_AUDIOHOOK_ID>"></script>

Important: Replace YOUR_AUDIOHOOK_ID with your unique Audiohook ID which can be found on the Account Details tab in the Audiohook UI. This ID is essential for linking the tracking data to your Audiohook account.

Using the ahTrack Function for Custom Events

While pageviews are automatically tracked once the script is installed, the ahTrack function allows you to send specific "events" to Audiohook when a user performs a particular action on your site. This is incredibly useful for understanding engagement beyond simply viewing pages as well as tracking specific conversion events.