You are on page 1of 15

Project Name: GA4 and GTM Custom Event Tracking

Project Manager: Krishno Roy

Project Start Date: July 15, 2023

Project Goals:

● To track custom events with GA4 and GTM

● To write a custom JavaScript function to track name, price, total value, and

Here is an example of the custom JavaScript function that you can use to track the
name, price, total value, and cross-domain tracking of the car lead or car purchase
event:

function trackCarEvent(eventName, name, price, totalValue) {

// Get the GA4 configuration tag.


var ga4ConfigTag = document.getElementById('ga4ConfigTag');

// Create a custom event object.

var customEvent = {

event_name: eventName,

name: name,

price: price,

total_value: totalValue,

};

// Send the custom event to GA4.

ga4ConfigTag.send('event', customEvent);

Once you have created the custom event tag and the custom JavaScript function, you
can trigger the custom event tag when a user clicks on the button or takes another
action that you want to track. You can then create a report in GA4 to view the data from
your custom events.

● cross-domain tracking of the car lead or car purchase event


● To create a report in GA4 to view the data from the custom events
Car purchases custom event: Note without real purchases track to tax and
Transactions. When we are finally complete payment and successfully and get
back to or

Project Results: The custom event tag and custom JavaScript function were
successfully created.
The report in GA4 is able to view the data from the custom events.

Here is all tag manage: Car_lead


Car_purchases Tag:
Car Purchases personal Details Tag:

Car purchases email lick pakges view Tag:


Car purchase email quotations link click Tag:
Car purchase email quotations link click Tag:
Create a new GA4 configuration tag in GTM. This will allow you to send data from your
website to GA4
View the all event in Tag Assitance window:

Google Tag Manager all Tag is fire:

You might also like