Hi, I have an unique click id on url on webpage (w...
# ask-questions
m
Hi, I have an unique click id on url on webpage (wordpress website) I want to send it to GrowthBook and after that I want to send the confirmed conversion with API or with DB integration on GrowthBook. I am searching documentation for doing that but I don't find the solutions on Docs. Someone can help me?
f
Hi Jacopo- you don’t actually send events to us
m
I am integrating now, but i want to understand how send this "click id"
f
What data tracker are you using?
Google analytics?
m
Custom made, I have postgresql db
f
Ok
GrowthBook connects to any data source
So in the tracking callback you would pass the event to your custom tracker
That event says which user was exposed to which experiment and which variant they got
m
Great, can you give me the code or docs for doing that?
f
In which ever SDK you’re using, look for the tracking callback
m
I need to add my subid parameter in this code? <script> window.growthbook_config = window.growthbook_config || {}; window.growthbook_config.trackingCallback = (experiment, result) => { customEventTracker("Viewed Experiment", { experiment_id: experiment.key, variation_id: result.key }) }; </script>
I must create this tables on my DB and how can i populate it?
Copy code
relation "fbjacopo.viewed_experiment" does not exist
f
you can pass back that custom id, or any other parameters you want, often trackers automatically track user ids