Learn business growth with Google Analytics 4 Forums Google Analytics 4 Modifying Event Parameters in GTM for gtag Method

  • Modifying Event Parameters in GTM for gtag Method

    Posted by Ezra on 4 July 2022 at 5:35 pm

    “Can you show me how to add the “value” and “currency” parameters to a gtag event in Google Tag Manager or suggest another way to do it? The code I got from my website doesn’t include these parameters.”

    Isaiah replied 1 year, 5 months ago 3 Members · 2 Replies
  • 2 Replies
  • Luke

    Member
    28 September 2022 at 6:16 am

    To add ‘value’ and ‘currency’ parameters to a gtag event in Google Tag Manager, first, sign into your Google Tag Manager account and select your desired website. Go to Tags, then click New to create a new tag. Choose Google Analytics – Universal Analytics as the Tag Type. Choose Event as the Track Type, then insert your desired Category, Action, and Label. Now, to add the ‘currency’ and ‘value’ parameters, click on the fields to trigger the variable menu or manually type in the values directly. Fill these fields with your desired currency and value. Remember to set your Google Analytics Tracking ID in the field provided. Now click Save. After setting this up, confirm changes by clicking Submit at the top-right corner. This will enable the ‘value’ and ‘currency’ fields in the Google Analytics events on your website. Test the new setting by triggering the event in your website and checking the Real-Time section of the Events category in your Google Analytics account.

  • Isaiah

    Member
    2 March 2023 at 5:25 am

    In Google Tag Manager, you can add additional parameters like “value” and “currency” to your gtag events by modifying the function calls that send data to Google Analytics. For instance, for a purchase event, the code might look something like this: gtag('event', 'purchase', { 'value': 23.07, 'currency': 'USD' });. In this code, ‘event’ refers to the type of event that’s being tracked, ‘purchase’ is the specific event, ‘value’ represents the monetary value associated with the event, and ‘currency’ is the type of currency associated with the ‘value’. Alternatively, if you’re using Google Tag Manager’s interface, you can use the ‘Fields to Set’ section when setting up a GA tag to add these parameters. You’d enter ‘value’ and ‘currency’ as the field names on individual lines and then put the corresponding values in the ‘Value’ column.

Log in to reply.