Quantcast
Channel: Opinion: Shopify Community - Shopify Apps
Viewing all articles
Browse latest Browse all 11091

Mircea Piturca commented on Behavioural Targeting - alerts based on length of time on page

$
0
0
var timeoutID;
var timeInMilliseconds = 2000;

function delayedAlert() {
  timeoutID = window.setTimeout(slowAlert, timeInMilliseconds);
}

function slowAlert() {
  // 2000 passed, do something here
}

This can be just a simple Javascript timeout call. You don't need an app for this.


Viewing all articles
Browse latest Browse all 11091

Trending Articles