• Members 28 posts
    Aug. 1, 2023, 7:40 a.m.

    How do I configure conversions based on time spent? For instance, can I consider a customer who stays on our website for more than 2 minutes as a conversion?

  • Mod
    Aug. 1, 2023, 8:29 a.m.

    Hello,

    You can use Google Tag Manager (GTM) for this.

    First, in Google Tag Manager, create a new Tag with GA4 - Event. Specify the name of the event you want to track, and then add a trigger called "GTM timer." Note that the "GTM timer" trigger is suitable for tracking events within the same page. For example, if you set the trigger to 2 minutes, it will only fire when a user spends 2 minutes on a single page, not the entire website.

    However, if you intend to trigger the event when a user spends 2 minutes on the entire website, you should consider writing custom JavaScript code. You can do this by adding a custom HTML tag in Google Tag Manager.

    The custom JavaScript code should be designed to push data to the Data Layer after a user spends 2 minutes on the website. Subsequently, create a new GA4 - Event tag in Google Tag Manager and set the trigger as "Custom Event." This custom event's name should match the event name you pushed into the Data Layer using your JavaScript code.

    By following these steps, you'll be able to track the desired event after a user spends 2 minutes on the website.

    hope this helps!