Posts tagged with utm

As a frontend developer I've been tasked with the following. The customer is using Google Ads to get traffic to their website A. They can successfully track campaigns in their Google Ads dashboard. Now they want to be able to do the same for website B, which is on the same domain. And they ask me to do it.

Do I need to do anything as frontend developer to make customer able to track UTM campaigns on website B? E.g. do I need to send Google Analytics events, do need to configure something on frontend side?

I found it very hard to find any info on how it actually works (there is a ton of very basic articles on what UTM parameters are, how to generate them and rubbish like that, but nothing about how Google knows when someone landed on a URL with UTM parameters). If anything, I am under impression that it should just work out of the box.

Problem: I have an appointment booking widget (non-iframe) embeded into a webpage. How do I ensure GA4 is picking up on these form submissions?

Additionally, how does the form submission correlate up to the success of the Google Ad?

I have embeded this javascript in the form to ensure it fires data to GA4, but marketers are still telling me the conversions are not appearing with a traffic source from the UTM.


async function triggerConversionEvent() {

        const measurementId = 'measurementId'; // Replace with your GA4 Measurement ID         const conversionEventName = 'self_booked_appointment'; // Replace with your conversion event name         const clientId = 'booking_engine'; // Replace with a unique client ID (can be randomly generated)         const url = `https://www.google-analytics.com/mp/collect?measurement_id=${measurementId}`;         const body = {             client_id: clientId,             events: [                 {                     name: 'conversion',                     params: {                         event_name: conversionEventName,                     }                 }             ]         };         try {             const response = await fetch(url, {                 method: 'POST',                 headers: {                     'Content-Type': 'application/json'                 },                 body: JSON.stringify(body)             });             if (response.ok) {                 console.log('Conversion event triggered successfully');             } else {                 console.error('Failed to trigger conversion event');             }         } catch (error) {             console.error('Error triggering conversion event:', error);         }     } 

I just make one App campaign from google adword.

having an issue regarding user came from ads campaign those having not set referrerUrl and wrong UTM params

I have used new install referrer client provided android library

everything working fine I got a custom UTM params from our website. but only issue that user came from Ad campaign

com.android.installreferrer:installreferrer:2.2 

my code as like below

I just set default organic if it return not set

I don't know what I have missing. but that particular flow not working

everything working fine with custom URL and a user came from directly PlayStore. the only problem that the user came from adcampaign