Hi @winstonl3651471 ,
Though you can use the same rule for both pages, there are two issues you will have: First, someplace you will need conditional logic to distinguish which page you are on. Second, it will be difficult to determine which event happened the 10 second event of the 15 second event.
The easiest way to do this without custom code is setting up to separate rules. However, if you did want to use a single rule, you could write custom code using the same mechanism as the Time and Scroll Event extension which is the setTimeout() function. One approach would look like the following:
- Create a new rule which fires conditionally on the pages that you are doing timed tracking
- Within an Analytics "Set Variable" action write custom code similar to
// time logic
var time;
if (isPage1) {
time = 10;
} else if (isPage2) {
time = 15;
} else { return; }
// fire beacon logic
setTimeout ( function() {
// any additional logic
s.t(); // or s.tl()
}
, time * 1000
);