Delay

Delay server requests to be sent to the server container

Description

As the name points out, this add-on is a very simple tool with the only purpose of delaying the requests made to your server side container.

It works by storing the requests and forwarding it after the specified delay period is over.


Implementation

To activate this add-on, go to your container on sprtags.io > Add-ons > Delay. Enable it and click on save.


Request Delay screenshot

Now you just have to send the requests you want to delay to:


{your_tagging_url}/delay/{the minutes you want to delay them}/{the usual path you would send them to} and you will receive them with the specified delay on your tagging server.

Checkout out our How-To page to:
  • find your tagging url
  • X-GTM-Server-Preview HTTP header
  • execute curl commands

Request without delay:


curl -H \ 'x-gtm-server-preview: {Your X-Gtm-Server-Preview HTTP header}' \ 'https://{your_tagging_url}/g/collect?v=2&en=page_view&tid=G-1234&cid=123.456&'

Request with delay by one minute:


curl -H \ 'x-gtm-server-preview: {Your X-Gtm-Server-Preview HTTP header}' \ 'https://{your_tagging_url}/delay/1/g/collect?v=2&en=page_view&tid=G-1234&cid=123.456&'

As you can see in the animation, we send the request specifying a delay of one minute and after one minute it arrives:


Request Delay screenshot