Callback widget setup with Google Analytics

Created by Daniel Kauffer, Modified on Wed, 14 Feb at 1:52 PM by Daniel Kauffer

In your personal Google Analytics account, navigate to "Admin," choose the account and property, and under "View," select "Goals." Create a goal by clicking on "+New Goal" and choose "Custom" then "Continue."



Name: Assign any value (for display in your Google Analytics account).

Type: Select "Event."

Category: Specify a name for the category related to the goal (any value).

Action: Name the action associated with the goal (any value).


These parameters will be used to create a JavaScript code, which should be set in the widget settings under "Event for analytics" and "Event for delayed call."


Example:

Create a category and name it MegacallCallBack.

An event for calls during working hours can be named "Work," and for delayed calls, name it "Delayed."



Universal Analytics


If the Universal Analytics tracking code is set on your website, use the following code for the "Event for analytics" field:


ga('send', 'event', 'MegacallCallBack', 'Work');


For the "Event for delayed call" field:


ga('send', 'event', 'MegacallCallBack', 'Delayed');


Parameters "Label" and "Value":

Leave these parameters unchanged and click "Save."


Mandatory Condition:

Ensure that Universal Analytics is set as the tracking code on your website. 

You can configure this under "Admin" - "Property" - "Tracking Code."


Checking Goal Achievements:

You can check goal achievements in "Reports" - "Conversion" - "Goals."


Please note that information is updated once every 24 hours, at midnight.




Global Site Tag


If the Global Site Tag tracking code is set on your website, use the following code for the "Event for analytics" and "Event for delayed call" fields:


gtag('event', 'Work', {'event_category': 'MegacallCallBack'});


For the "Event for delayed call" field:


gtag('event', 'Delayed', {'event_category': 'MegacallCallBack'});



Parameters "Label" and "Value":

Leave these parameters unchanged and click "Save."


Mandatory Condition:

Ensure that the Global Site Tag is set as the tracking code on your website. You can configure this under "Admin" - "Property" - "Tracking Code."



Checking Goal Achievements:

You can check goal achievements in "Reports" - "Conversion" - "Goals."


Please note that information is updated once every 24 hours, at midnight.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article