Days, Hours or Minutes Between Two Dates (or Now)

Community variable by ArtemKorneevGA

What is Days, Hours or Minutes Between Two Dates (or Now)?

The Template will return the amount of full days, hours, etc. between the first and the second date.

You can use this template for example to check if it is more than X days after previous event.

Days, Hours or Minutes Between Two Dates (or Now) variable is created by ArtemKorneevGA. Once you set up server side tagging with MetricsGate, you can use this variable with Google Tag Manager to enhance your data analytics.

This variable template is part of an open-source community, with its source code accessible on Github, and its documentation can also be found online.

You can check its version history below:

  1. Initial release.

More tags and variables supported

Tags

Variables

Join early adopters globally and leverage server-side tagging, GA4 custom events, and cookieless tracking to gain deeper insights and enhanced analytics data about your visitors!

Get Started now