Below is how I have used this variable. This is of cox, one way to use it, but if you happen to like the approach, updating the readme would be great (disclaimer: I tried to create a PR, but seems like I can't contribute) :)
Ways to use this Timestamp Converter Variable.
In a custom tag template
Step 1: Create a new variable in your Google Tag Manager Server Container.
Clone or download this repository.
Go to your Google Tag Manager Server Container and go to the Templates tab on the left menu.
Create a new Variable Template by clicking on the New button. This will open the Template Editor.
On the Template Editor page, click on the Import button and select the template.tpl file from the repository.
Click on the Save button.
Step 2: Setting up the user-defined variable.
Go to the Variables tab on the left menu.
Create a new User-Defined Variable by clicking on the New button. This will open the Variable Editor.
On the Variable Editor page, select the Timestamp Converter template from the Variable Type dropdown.
Choose a Conversion Type from the Conversion Type. The available options are Timestamp to ISO and ISO to Timestamp.
Enter current_timestamp if you want to get the current timestamp and generate it dynamically.
Step 3: Using the variable in your Custom tag template.
Go to the Templates tab on the left menu and open your custom tag template.
Add a new field to your custom tag template with a name like timestamp or event_at and save.
Go to the Tags tab on the left menu and open your custom tag.
Within your custom tag, fields you now will the field you have added.
Attach the custom user-defined variable you have created in step 2 to that field.
Thank you for this timestamp converter variable.
Below is how I have used this variable. This is of cox, one way to use it, but if you happen to like the approach, updating the readme would be great (disclaimer: I tried to create a PR, but seems like I can't contribute) :)
Ways to use this Timestamp Converter Variable.
In a custom tag template