Home / Admin / om-js-event-ga-name-change.js
Duplicate Snippet

Embed Snippet on Your Site

om-js-event-ga-name-change.js

Code Preview
js
document.addEventListener( 'om.GoogleAnalytics.preConversionEvent', function( event ) {
    const { gaEvent } = event.detail;
    gaEvent.name = 'generate_lead'; // generate lead is a recommended event
} );

Comments

Add a Comment