Artikelen over: Developers

How can I set Google Ads (Adwords) data on Crisp users profile?

*This article explains how you can send Google Adwords data to Crisp users' profile.*


We will cover an example but regarding Google adwords developpers docs you will be able to set a wide variety of use case. Depending on the way you use Crisp, you should be able to build *users events* for


*marketing* & *sales* teams.


If you want to have a look at all the events that are built in Crisp, you should have a look here


This example shows how to add data to Crisp profile to a website visitor that came from a Google Ads Campaign and then fire a conversion when he/she starts a conversation.


<script type="text/javascript">    $crisp.push(["on", "session:loaded", function() {         // Set as Adwords visitor when GCLID isset         if (($crisp.get("session:data", "adwords") === null) && (window.location.href.indexOf("gclid") > -1)) {            $crisp.push(["set", "session:data", [[["adwords", "visitor"]]]]);        }                $crisp.push(["on", "message:sent", function(message) {            if ($crisp.get("session:data", "adwords") === "visitor") {                $crisp.push(["set", "session:data", [[["adwords", "conversion"]]]]);                gtag('event', 'conversion', {'send_to': 'AW-999999999/HO-xxxxx-XXXXXXXXXX'});            }        }]);    }]);</script>


So in this example, a message sent is a conversion but regarding your website, it could not match so


you have to *adapt this example to your business case*.

Bijgewerkt op: 12/02/2026

Was dit artikel nuttig?

Deel uw feedback

Annuleer

Dankuwel!