How to add @dub/analytics to your Webflow site
@dub/analytics
, you can track lead and sale conversions on your Webflow site, enabling you to measure the effectiveness of your marketing campaigns.
You can add the @dub/analytics
script to your Webflow website same way you would add Google Analytics script or any other JavaScript code.
Follow these steps to add the script to your site:
data-domains
property to enable client-side click-tracking.
_dubAnalytics
– if the script is installed correctly, you should see the _dubAnalytics
object in the console.?dub_id=test
query parameter to your website URL and make sure that the dub_id
cookie is being set in your browser.<head>
section of the page@dub/analytics
script to customize its behavior:
first-click
: The first click model
gives all the credit to the first touchpoint in the customer journey.last-click
: The last click model gives all the credit to the last
touchpoint in the customer journey.?via=abc123
).