Basic Script Installation
Step one in the installation process is to install the Triggerbee Base Script. You will find this in your Account Settings in Triggerbee.
In Askås, navigate to Askås Tag Manager. Create a new tag and give it a name (may we suggest "Triggerbee Tracking"). Then, select the following:
Advanced Pixel: No
Currency: BAS (default)
Rounding Multiplication: 1 (default)
Rounding Decimals: 2 (default)
Cookie time: 0
Where should the measurement pixel be printed: All-BodyStart (All Pages), or equivalent position to load first on site).
Leave all other settings empty/as is. If you want to limit Triggerbee to a certain cookie type, feel free to add that as well.
As the script header, paste your Triggerbee tracking code. Make sure to keep the initial and ending <script> tags.
Save your tag! You will also need to republish your general settings in Askås for the tag to go live on your site.
Event Logging
The next step in the installation process is to add some eCommerce events that will help you build audiences, automations, and follow up on your campaigns. This part is not required, but highly recommended to get the most out of Triggerbee.
Triggerbee has three different types of events.
Goal
Goal with Identification
Purchase
Each of these event type have different parameters. Goals only have a goal name, since that's all you need to track a basic event in Triggerbee. "Goal with identification" is useful for logging events where you'll also have the email address of the visitor, such as when they log in or register for a membership. And the Purchase event is what it sounds like, to track a purchase together with revenue and order data.
Note: You do not need to declare any events in Triggerbee before adding it in Askås Tag Manager - they will be automatically created.
How to log a Goal in Askås Tag Manager
In Askås, navigate to Askås Tag Manager. Create a new tag and give it a name. Select Advanced Pixel: Yes to activate the Advanced Script option.
In the script (advanced) field, paste this script and replace YOUR GOAL NAME with what you want to call your event, eg. "Initiated Purchase", "Added to cart", "Clicked button X".
<script>
triggerbee.event({
type: 'goal',
name: 'YOUR GOAL NAME'
});
</script>
Select the corresponding event in the list "Where should the measurement pixel be printed".
Leave all other settings empty/as is. If you want to limit Triggerbee to a certain cookie type, feel free to add that as well.
Save your tag! You will also need to republish your general settings in Askås for the tag to go live on your site.
How to log a Goal with Identification in Askås Tag Manager
In Askås, navigate to Askås Tag Manager. Create a new tag and give it a name. Select Advanced Pixel: Yes to activate the Advanced Script option.
In the script (advanced) field, paste this script. Replace "Logged in" with what you want to track, eg. "Registered Membership".
<script>
triggerbee.event({
type: 'goal',
name: 'Logged in',
data: {
identity: {
email: '[% customer.email %]'
}
}
});
</script>
Select your Login event in the "Where should the measurement pixel be printed".
Leave all other settings empty/as is. If you want to limit Triggerbee to a certain cookie type, feel free to add that as well.
Save your tag! You will also need to republish your general settings in Askås for the tag to go live on your site.
How to log a Purchase in Askås
In Askås, navigate to Askås Tag Manager. Create a new tag and give it a name. Select Advanced Pixel: Yes to activate the Advanced Script option.
In the script (advanced) field, paste this script:
<script>
triggerbee.event({
type: 'purchase',
id: '[% order.id %]',
data: {
couponCode: '',
revenue: [% round_to_decimal(order.total_amount_incl_vat, 2) %],
identity: {
email: '[% order.customer.email %]',
firstname: '[% customer.first_name %]',
lastname: '[% customer.last_name %]'
}
}
});
</script>
Select your Purchase/OrderRecieved event in the "Where should the measurement pixel be printed".
Leave all other settings empty/as is. If you want to limit Triggerbee to a certain cookie type, feel free to add that as well.
Save your tag! You will also need to republish your general settings in Askås for the tag to go live on your site.



