Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Add sample type parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dbosen authored Dec 20, 2021
1 parent 6ad6421 commit be9ffd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/ivw-call.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
"pt": "{{ pt }}",
"dg": "{{ dg }}",
"bfe": "{{ bfe }}",
"sample": "in",
}
if ( (window.innerWidth <= {{ mobile_width }}) || (/iPhone/.test(window.navigator.userAgent))) {
responsive_data.cp = "{{ mobile_cp }}";
responsive_data.sv = "{{ mobile_sv }}";
responsive_data.dn = "{{ mobile_dn }}";
responsive_data.sample = "mo";
var ivw_mobile_site = "{{ mobile_st }}";
if((typeof ivw_mobile_site !== 'undefined') && ivw_mobile_site != '') {
Expand Down Expand Up @@ -50,7 +52,7 @@
IOMm('pageview', { cp: responsive_data.cp, pt: responsive_data.pt });
if (responsive_data.bfe) {
IOMm('3p', 'qds');
IOMm('3p', 'qds', responsive_data.sample);
}
}
</script>

0 comments on commit be9ffd9

Please sign in to comment.