Gallery
BASE DE CONNAISSANCE
Share
Explore

🎲AUTOCLICK JS

function gup( name, url ) {
if (!url) url = location.href;
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( url );
return results == null ? null : results[1];
}

$( document ).ready(function() {
var _target = "sgE-90653306-1-3-10001";
var _star = gup("n");
if( _star && $("#" + _target +"-stars").length > 0 )
{
setTimeout(function() {
$("#" + _target +"-stars").find('.sg-star-' + _star + " .sg-star-sr-target").trigger('mousedown');
$("#" + _target +"-stars").find('.sg-star-' + _star + " .sg-star-sr-target").trigger('mouseup');
$("#" + _target +"-stars").find('.sg-star-' + _star + " input").trigger('mouseup').attr('checked', 'checked');
}, 400);
}
});



🎲TRACKING BREVO

<script type="text/javascript">
(function() {
window.sib = {
equeue: [],
client_key: "d2n0xpqcvmcgs6v4nwpc5ymg"
};
/* OPTIONAL: email for identify request*/
// window.sib.email_id = 'example@domain.com';
window.sendinblue = {};
for (var j = ['track', 'identify', 'trackLink', 'page'], i = 0; i < j.length; i++) {
(function(k) {
window.sendinblue[k] = function() {
var arg = Array.prototype.slice.call(arguments);
(window.sib[k] || function() {
var t = {};
t[k] = arg;
window.sib.equeue.push(t);
})(arg[0], arg[1], arg[2], arg[3]);
};
})(j[i]);
}
var n = document.createElement("script"),
i = document.getElementsByTagName("script")[0];
n.type = "text/javascript", n.id = "sendinblue-js", n.async = !0, n.src = "https://sibautomation.com/sa.js?key=" + window.sib.client_key, i.parentNode.insertBefore(n, i), window.sendinblue.page();
})();
</script>

🎲Relance Alchemer Brevo

//ajouter le nom du questionnaire afi d'ajouter dans le event Brevo
var event_name = "questionnaire_commercial_complete";
var properties = {
"email": '[url("e")]',
};
sendinblue.track(event_name,properties);
This JavaScript code snippet is used to track an event related to completing a commercial questionnaire using the Sendinblue platform.
The event_name variable is set to “questionnaire_commercial_complete", indicating the specific event being tracked.
The properties object contains the information related to the event, in this case, the email address of the participant is being captured.
Finally, the sendinblue.track() function is called with the event_name and properties as parameters to track the event with the specified properties.

Changer le text sur le bouton de la page d’introduction de questionnaire

document.addEventListener("DOMContentLoaded", function() {
var nextButton = document.querySelector(".sg-pageid-1 #sg_NextButton");
console.log(nextButton); // Vérifiez si le bouton est trouvé
if (nextButton) {
nextButton.value = "Démarrer"; // Modifie la valeur du bouton
} else {
console.error("Le bouton n'a pas été trouvé.");
}
});

Masquer la bar de progression

function addCustomStyle() {
var styleElement = document.createElement("style");
styleElement.textContent = ".sg-pageid-2 .sg-survey .sg-body.sg-int-virtual-page .sg-progress-bar-inner, .sg-survey .sg-progress-bar-inner { display: none; }";
document.head.appendChild(styleElement);
}
addCustomStyle();


Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.