• Members 35 posts
    July 24, 2023, 7:12 a.m.

    Hello people,

    How can you configure a conversion event based on the time spent? For instance, is it possible to consider a visitor who spends more than 2 minutes on our website as a conversion?

  • Mod
    July 24, 2023, 7:22 a.m.

    Hi @ljain,

    You should be able to achieve this with Google Tag Manager (GTM). Follow these steps -

    1. In Google Tag Manager, create a new Tag with GA4 - Event.
    2. Specify the desired name for the event you want to track.
    3. Add a trigger named "GTM Timer." Note that this trigger is designed for tracking on the same page. If you set the trigger for 2 minutes, it will only fire when a user
      spends 2 minutes on a single page, not the entire website.
    4. If you want to trigger the event when a user spends 2 minutes on the entire website, you'll need to use JavaScript. Write the necessary code that pushes data to the Data Layer once a user spends 2 minutes on the website.
    5. Create another Tag for GA4 - Event. This time, set the trigger as "Custom Event" and use the event name you specified in the Data Layer.

    By following these steps, you can effectively track and set conversions based on the time spent by users on your website using Google Tag Manager and GA4 events.

    Hope this helps!