How to install browser code snippets
To install browser code snippets, simply copy the browser code and paste it in the <body> of the web page you want it to fire on.
It's very important that the Cometly base code fires before the event code. This is why the base code goes in the <head> and the event codes go in the <body> of the page.
Use the Cometly Pixel Helper plugin to test that the base code and browser codes are firing correctly.
⚠️ Critical Information ⚠️
Some landing page builders (ClickFunnels, Go High Level, etc.) do NOT fire codes correctly. Please review the specific help article for your landing page builder and it will show you how to place the browser code correctly for that specific integration.
Use the Cometly Pixel Helper Plugin to check that the code is firing correctly.
FAQ: Can I use Google Tag Manager to install the Cometly base code and event code?
Yes! But if you are going to use GTM, you must use GTM for BOTH the base code and the event codes.
Custom Events
Want to create and use a 'Custom Event'? Learn how to set up Cometly 'Custom Events'.
Standard Events
Below are a list of the Cometly Standard Events and their event codes:
Add Payment Info
<script>
comet('add_payment_info');
</script>
Add To Cart
<script>
comet('add_to_cart');
</script>
Complete Registration
<script>
comet('complete_registration');
</script>
Contact
<script>
comet('contact');
</script>
Start Trial
<script>
comet('start_trial');
</script>
Initiate Checkout
<script>
comet('initiate_checkout');
</script>
Sign Up
<script>
comet('sign_up');
</script>
Lead
<script>
comet('lead_generated');
</script>
Purchase
<script>
comet('purchase', {amount: '0'});
</script>
Upsell
<script>
comet('purchase', {amount: '0', is_upsell: 1})
</script>
Schedule
<script>
comet('schedule');
</script>
Submit Application
<script>
comet('submit_application');
</script>
Subscribe
<script>
comet('subscribe');
</script>
View Content
<script>
comet('view_content');
</script>
Webinar Registration
<script>
comet('webinar_registration');
</script>