The beehiiv Event Tag is a custom Google Tag Manager template that enables easy integration with beehiiv's Ad Network pixel tracking. This template allows you to track various conversion events and user actions on your website.
- Google Tag Manager account
- beehiiv Ad Network pixel base code implemented on your website
- beehiiv advertiser account
- Open your Google Tag Manager container
- Go to Templates > Tag Templates
- Click "New"
- Click the three dots menu and select "Import"
- Upload the template file
- Save the template
Before using this event tag, ensure you have implemented the base beehiiv pixel code in your container:
<script>bhpx("track", "[event name]", { data: { num_items: 1, currency: "usd", value_cents: 299 } });</script>
Event Type | Description | Required Parameters | Optional Parameters |
---|---|---|---|
conversion | Custom conversion event | currency, value_cents | num_items, predicted_ltv_cents |
lead | Sign up completion | currency, value_cents | - |
complete_registration | Registration form completion | currency, value_cents | - |
purchase | Purchase or checkout completion | currency, value_cents | num_items |
initiate_checkout | Checkout flow initiation | currency, value_cents | num_items |
start_trial | Free trial start | currency, value_cents | predicted_ltv_cents |
subscribe | Subscription start | currency, value_cents | - |
- Event Name: Select the type of event you want to track
- Currency: Three-letter currency code (e.g., "usd", "eur")
- Value: The value in cents (e.g., $1.99 = 199)
- Number of Items: Available for purchase, initiate_checkout, and conversion events
- Predicted LTV: Available for start_trial and conversion events (in cents)
- Content Category
- Content IDs
- Content Name
- Content Type
- Search String
- Status
{
"eventName": "purchase",
"currency": "usd",
"value_cents": 1999,
"num_items": 2
}
{
"eventName": "start_trial",
"currency": "usd",
"value_cents": 0,
"predicted_ltv_cents": 29900
}
{
"eventName": "lead",
"currency": "usd",
"value_cents": 1000
}
-
Pixel Not Found Error
- Ensure the base beehiiv pixel code is implemented on your website
- Verify the pixel loads before any event tags fire
-
Invalid Event Name
- Check that you've selected a valid event name from the dropdown
- Verify the event name matches the supported events list
-
Missing Required Parameters
- Ensure all required parameters for your selected event are filled out
- Check that monetary values are provided in cents
The template includes built-in validation for:
- Required event name selection
- Valid currency code format (3 letters)
- Numeric values for monetary amounts and quantities
- Required parameters based on event type
For implementation support, please contact beehiiv support or consult the beehiiv developer documentation.