arrow_back_iosQuestions
help

How do I connect Google Analytics?

check_circle
In the order event processing code, add the data to Google Analytics. You will get something like this:
window.bukzaCallbackFor[Widget Container ID] = function(payload){
    switch(payload.message.event){
        //other handlers
        case 'ORDER_COMPLETED':
            gtag('event', 'purchase',
            {
                "value": payload.message.data.total
            });
            break;
    }
};
The Google Analytics initialization code must already be added to the page with the widget. Learn more about sending data to Google Analytics here.
Didn't find the answer to your question?
Ask it to us on
mail_outlinesupport@bukza.com