๐Connect a Conversion
Last updated
Last updated
If you using Webflow, then you should follow the guide here: Optibase Webflow App
Once you have created a Conversion inside of the Optibase web app, you need to connect it to an actual HTML element inside of your website. This way, Optibase knows which HTML element belongs to which Conversion.
Add a custom attribute to the HTML element to connect a Conversion to an HTML element.
If you want to trigger a Conversion Event when the user clicks an HTML element on your page, then you should add the data-optibase-click-conversion-id
attribute to the HTML element.
You can find the data-optibase-click-conversion-id
here:
You can copy it simply by clicking on it.
You need to then add this attribute to the HTML element:
Before:
After:
If you want to trigger a Conversion Event when the user submits an HTML form element on your page, then you should add the data-optibase-submit-conversion-id
attribute to the HTML form element.
You can find the data-optibase-submit-conversion-id
here:
You can copy it simply by clicking on it.
You need to then add this attribute to the HTML form element.
Before:
After:
This is a Conversion that is triggered programmatically by calling the optibaseSendConversionEvent(userFriendlyConversionId)
JavaScript function.
You can set up a Programmatic Conversion with Google Tag Manager: Trigger Conversions with GTM
You can also trigger this conversion from the server: Server-side Conversions
Conversions of this type do not need to be connected to an element in HTML since they work based on the URL you define when creating them.