Skip to main content
All CollectionsIntegrations with analytics systemsJS functions & GTM
JS Functions: Sending Events to Facebook Pixel "After Call"
JS Functions: Sending Events to Facebook Pixel "After Call"
Mariia Lobchenko avatar
Written by Mariia Lobchenko
Updated today

In the Ringostat account, navigate to the "Calltracking" section -> "Custom JS Functions":

Select the call moment (e.g., After Call), specify the event name (in our example, it is Ringostat Phone Call), and add the event to the data layer:

(function(data) {fbq('track', 'Contact',{type:'Ringostat Phone call'});});

In the GTM interface, create a trigger of type "Custom Event" and specify the event name (in our example - Ringostat Phone Call) from the data layer.

Go to the Tags section and create a new tag with the following details:

  • Tag Type - Custom HTML

  • HTML - JavaScript code for sending an event to Facebook Pixel:

    <script>

    fbq('track', 'Contact',{type:'Ringostat Phone call'});

    </script>

  • Triggering - The previously created Ringostat Phone call trigger

Did this answer your question?