PageSourceSearch

https://www.stats.bouyguestelecom.fr/js/extension_bytel_weba/infoTrackingWeba.js

js bouyguestelecom.fr collected 2026-09-24 08:38:25 UTC 8,149 bytes, 232 lines download raw bytes

1/////////////////////////////////////////////////////////
2// MECANIQUE AVEC AFFICHAGE DE POP IN (VIA JQUERY)
3////////////////////////////////////////////////////////
4//
5// Mecanique des erreurs
6// Erreurs si pas appel au fichier TagCo (car utilisation de weba_toolbox)
7try{
8  //
9	// Titre de la popin
10	var titre_avec_version = 'INFOS DE TRACKING DU STANDARD WEBA (v202510_1)';
11	//
12	//
13	/////////////////////////////////////////////
14	// Preparation des infos 
15	////////////////////////////////////////////
16	//
17	// Check si weba_toolbox.collecte_variables existe
18	if( typeof weba_toolbox !== "undefined" && typeof weba_toolbox.collecte_variables !== "undefined"){
19		//Utilisation des donnees recuperees avec la methode weba_toolbox.collecte_variables
20		tck_vars = wbtb.collecte_variables({ecommerce: true});
21		//
22		///////////////////////////////
23		// Information a afficher
24		///////////////////////////////
25		//
26		var a = '';
27		if (typeof window.tc_vars === 'undefined') {
28		  a += 'Pas d info de tracking (pas de dataLayer, pas de variable window.tc_vars)';
29		} else if(typeof tC === 'undefined'){
30		  a += 'Pas d info de tracking (pas de fichier TagCo appele)';
31		}  else {
32		  a += 'Ci-dessous les infos de tracking du standard WEBA : ';
33		  a += '<br/>';
34		  a += '(le standard WEBA recupere les infos dans le datalayer tc_vars et applique des regles de formattage)';
35		  a += '<br/>';
36		  a += '<br/>';
37		  a += '****************************************************************************************************************';
38		  a += '<br/>';
39		  a += ' Variables de page :';
40		  a += '<br/>'; 
41		  a += 'URL = ';
42		  a += tck_vars.page.urlComplete;
43		  a += '<br/>';
44		  a += 'Environnement = ';
45		  a += tck_vars.page.env;
46		  a += '<br/>';
47		  a += 'site = ';
48		  a += tck_vars.page.site;
49		  a += '<br/>';
50		  a += 'univers = ';
51		  a += tck_vars.page.univers;
52		  a += '<br/>';
53		  a += 'parcours = ';
54		  a += tck_vars.page.parcours;
55		  a += '<br/>';
56		  a += 'page / etape = ';
57		  a += tck_vars.page.page;
58		  a += '<br/>';
59		  a += 'Nom de page complet (format Piano) = ';
60		  a += tck_vars.page.pageNomComplet;
61		  a += '<br/>';  
62		  a += '<br/>';
63		  a += '****************************************************************************************************************';
64		  a += '<br/>';
65		  a += ' Autres variables de page :';
66		  a += '<br/>';
67		  a += 'pageCategorie = ';
68		  a += tck_vars.page.pageCategorie;
69		  a += '<br/>';
70		  a += 'ligneMarche (page) = ';
71		  a += tck_vars.page.ligneMarche;
72		  a += '<br/>';
73		  a += 'activiteB2BouB2C = ';
74		  a += tck_vars.page.activiteB2BouB2C;
75		  a += '<br/>';
76		  a += 'pageVariante (format Piano) = ';
77		  a += weba_toolbox.compile_multivariables(tck_vars.page.pageVariante);
78		  a += '<br/>';
79		  a += 'variables specifiques (format Piano) = ';
80		  a += weba_toolbox.compile_multivariables(tck_vars.page.variablesSpecifiques, ['eligibilite_techno_technique', 'eligibilite_techno_resultats', 'eligibilite_memo_ancien_test', 'eligibilite_memo_offre', 'eligibiliteConvergence_offresFai', 'eligibiliteCategoriesLivraison', 'eligibiliteModeLivraison']);
81		  a += '<br/>'; 
82		  a += '<br/>';
83		  a += '****************************************************************************************************************';
84		  a += '<br/>';
85		  a += ' Variables Utilisateur :';
86		  a += '<br/>';
87		  a += 'Connexion = ';
88		  a += tck_vars.utilisateur.utilisateurConnexionStatut;
89		  a += '<br/>';
90		  a += 'Id du compte (PU) = ';
91		  a += tck_vars.utilisateur.utilisateurConnexionId;
92		  a += '<br/>';
93		  a += '<br/>';
94		  a += '****************************************************************************************************************';
95		  a += '<br/>';
96		  a += '*** Variables Ecommerce :';
97		  a += '<br/>';
98		  a += 'etapeEcommerce = ';
99		  a += tck_vars.page.etapeEcommerce;
100		  a += '<br/>';
101		  a += '<br/>';
102		  a += '*** Info Panier :';
103		  a += '<br/>';
104		  if (tck_vars.ecommerce.produits_panier === []) {
105				a += 'Pas d infos Panier'
106		  } else {
107			var panierTotal = tck_vars.ecommerce.panier.montantTotal;
108			a += 'Id Panier = ';
109			a += tck_vars.ecommerce.panier.idPanier;
110			a += '<br/>';
111			a += 'Id Commande = ';
112			a += tck_vars.ecommerce.panier.idCommande;
113			a += '<br/>';
114			a += 'Prix total = ';
115			a += panierTotal;
116			a += '<br/>';
117			a += 'Type de produits dans le Panier = ';
118			a += tck_vars.ecommerce.panier.panierTypesProduit;
119			a += '<br/>';
120			a += '<br/>';
121			a += '*** Info Produits (Panier): ';
122			a += '<br/>';
123			//Infos sur les produits du panier
124			objProduit = tck_vars.ecommerce.produits_panier;
125			if (typeof objProduit !== 'undefined') {
126				var lengthProduit = objProduit.length;
127				var i;
128				for (i = 0; i <= lengthProduit - 1; i++) {
129					a += '<br/>';
130					a += 'produits[' + i + '].name = ';
131					a += objProduit[i].name;
132					a += '<br/>';
133					a += 'produits[' + i + '].idStandard = ';
134					a += objProduit[i].idStandard;
135					a += '<br/>';
136					a += 'produits[' + i + '].price = ';
137					a += objProduit[i].price;
138					a += '<br/>';
139					a += 'produits[' + i + '].ligneProduitNiv1 = ';
140					a += objProduit[i].ligneProduitNiv1;
141					a += '<br/>';
142					a += 'produits[' + i + '].ligneProduitNiv2 = ';
143					a += objProduit[i].ligneProduitNiv2;
144					a += '<br/>';
145					a += 'produits[' + i + '].gamme = ';
146					a += objProduit[i].gamme;
147					a += '<br/>';
148					a += 'produits[' + i + '].technology = ';
149					a += objProduit[i].technology;
150					a += '<br/>';
151				}
152			} else {
153				a += 'Pas d info Produit';
154				a += '<br/>';
155			}
156			a += '<br/>';
157			}
158		}
159		//
160		//
161		////////////////////////////////////////////////
162		// Affichage de la popin avec les informations
163		////////////////////////////////////////////////
164		//
165		//
166		// Fonction pour l'appel des fichiers JS avec callback
167		//
168		function loadFile_dtlc(file, type, callback){
169			if(type === 'js'){
170				var dialog_jquery = document.createElement("script");
171				dialog_jquery.src = file;
172				dialog_jquery.onload =() => callback(file);
173				document.body.appendChild(dialog_jquery);
174			} else if (type === 'css'){
175				var dialog_jquery = document.createElement("link");
176				dialog_jquery.setAttribute("rel", "stylesheet");
177				dialog_jquery.href = file;
178				dialog_jquery.onload =() => callback(file);
179				document.body.appendChild(dialog_jquery);
180			}
181		}
182		//
183		// Fonction pour declencher l'affichage de la pop-in
184		//
185		function createDialog(title, text) {
186		  return $("<div class='dialog' title='" + title + "'><p>" + text + "</p></div>").dialog(
187		  {
188			width: 800,
189			height: 500,
190			});
191		}
192	  //
193		//
194		///////////////////////////
195		// Affichage de la pop-in
196		///////////////////////////
197		// 
198		//
199		// Prealable : supprimer la fonction define qui peut exister sur certaines pages (conflits avec la fonction define de jquery-ui)
200		delete define;
201		// Chargement des fichiers
202		loadFile_dtlc('https://www.stats.bouyguestelecom.fr/js/extension_bytel_weba/librairies/jquery-1.12.4.js', 'js',function(){
203			loadFile_dtlc('https://www.stats.bouyguestelecom.fr/js/extension_bytel_weba/librairies/jquery-ui.js','js', function(){
204				loadFile_dtlc('https://www.stats.bouyguestelecom.fr/js/extension_bytel_weba/librairies/jquery-ui.css','css',function(){
205					createDialog(titre_avec_version, a);
206				})
207			})
208		})
209		//
210		// Gestion de la mise en avant de la pop-in
211		//
212		miseAvantPopin = function(){
213			x = document.querySelectorAll(".ui-front");
214			for(var i=0; i<x.length ; i++){
215			x[i].style.zIndex = 6000000000;
216			}
217		};
218		//
219		// Appel de la mise en avant de la pop-in pendant plus de 5 secondes
220		//
221		if(typeof weba_toolbox !== 'undefined'){
222			weba_toolbox.repetition_limite(miseAvantPopin,1000,6)
223		}
224	}
225} // Suite mecanique si erreur
226catch(err){
227	// affichage de la pop-in avec message information
228	a = 'Probleme : Pas de fichier TagCo appele (donc pas de tracking au standard WEBA)';
229	a += '   ';
230	a += err
231	alert(a);
232}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.