From be9ffd982deb08e4c083a29e726f531e2163955f Mon Sep 17 00:00:00 2001 From: Daniel Bosen Date: Mon, 20 Dec 2021 15:40:38 +0100 Subject: [PATCH] Add sample type parameter --- templates/ivw-call.html.twig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/ivw-call.html.twig b/templates/ivw-call.html.twig index 1a67367..84a9de6 100644 --- a/templates/ivw-call.html.twig +++ b/templates/ivw-call.html.twig @@ -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 != '') { @@ -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); } }