Builder public api key
159c7272fa3b40bfb00846dbc501c81e
What are you trying to accomplish
I would like to be able to track the conversion correctly of an A/B-test
Code stack you are integrating Builder with
Nuxt (vue) (version 3.12.4) @builder.io/sdk-vue (version 2.0.0)
Description of the problem
Builder provides information on how often there was a click on the page. But we actually only want to know the conversion on a specific target. In our case we have two pages with a different layout for our conversion click. And we would like to figure out which page converts better. The clicks on builder only show how often on the page was clicked and not only the clicks for the conversion.
So we want to track those specific clicks. For that we planned on doing a global event listener (document.addEventListener) that listens on any click. And if the click target includes a data-track attribute we would fire the trackConversion event as described in the docs: Conversion tracking with Builder.io - Builder.io
Although there is no option for vue and the sdk doesn’t export builder or a trackConversion- function. Only a track-function.
So the question is on how we can track our conversions in vue?
Thank you for your reply @manish-sharma. Yes, that is correct. That’s also what I have written in my question. So the question still stands: how we can track our conversions in vue?
How do I need to use the track function to implement a conversion tracking?
We are internally investigating this issue with our team to find a possible workaround or deploy a fix. I will keep you updated as soon as we have any insights.
After conducting an internal investigation, our team has concluded that the issue lies not with the SDK, but rather with the integration. Upon reviewing the preview URL of your content, we did not observe any conversion calls. It is necessary for you to deploy a version of your web app that includes these conversion calls. After doing so, open the A/B test multiple times to increase the conversions, and then verify if the number changes.
Furthermore, there may be an issue with the visual editor not displaying the actual conversions, which will require further investigation.