Lancement de mon nouveau site de photographie - http://un-photographe-de-montreal.com/.
Consultez mes services, vous pouvez maintenant acheter mes photos, soit uniqument l'image (que vous faites encadrer vous même) ou déjà encadrer.
Sébastien Brodeur - Web Analyst
Lancement de mon nouveau site de photographie - http://un-photographe-de-montreal.com/.
Consultez mes services, vous pouvez maintenant acheter mes photos, soit uniqument l'image (que vous faites encadrer vous même) ou déjà encadrer.
<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXXX-X']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();</script><script type="text/javascript">var _kiq = _kiq || [];</script><script type="text/javascript" src="//s3.amazonaws.com/ki.js/XXXXX/XXX.js" async="true"></script><script type="text/javascript"> (function() { // if jQuery isn't loaded, do so now and attach an onload event to fire initGA if (typeof jQuery === "undefined") { var jq = document.createElement('script'); jq.type = 'text/javascript'; jq.src = '//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'; jq.onreadystatechange = function() { if (this.readyState === 'complete') { init(jQuery); } }; jq.onload = init; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(jq, s); } else { // jQuery is already loaded, we can use it jQuery(document).ready(function($) { init($); }); } })(); function init($) { // This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. // Fire when the user submit the survey. _kiq.push(['eventHandler', 'submit', function(){ // Retrieve KISSInsights survey ID. surveyId = $("[src*='kissinsights.com']").attr("src").match(new RegExp("(id=)([0-9]*)&"))[2]; // For each survey questions... for (i = 0; i < $("[class*='ki_question']").length; i++) { // ... get the question text... question = $("[class*='ki_h1']:eq("+i+")").text(); // ... and the selected anwser text // Check first for radio button answer. anwser = $("[class*='ki_question']:eq("+i+") input:checked[type='radio']").closest("label").text(); // Then for checkbox answer if (anwser == "" || anwser == null || anwser == undefined) { anwser = $("[class*='ki_question']:eq("+i+") input:checked[type='checkbox']").closest("label").text(); } // Then for textbox answer(s) if (anwser == "" || anwser == null || anwser == undefined) { anwser = $("[class*='ki_question']:eq("+i+") textarea").val(); } // And finaly, score if (anwser == "" || anwser == null || anwser == undefined) { anwser = $("[class*='ki_question']:eq("+i+") [class*='active'] a").text(); } // If both data are available, queue a Google Analytics _trackEvent tag. if (question && anwser) { _gaq.push(['_trackEvent', 'VOC' +' - ' + surveyId, question, anwser]); } } }]);</script>Basically, this code is trigger when a user submit his answer. It will create a _trackEvent tag for each question/answer(s) pair. The beauty of the code is that it fetch the actual text value automatically and save it in a readable way into GA.if (question && anwser) _gaq.push(['_trackEvent', 'VOC-' + surveyId, question, anwser]);// Licensed under the GPL Version 2 licenses.
try {
// Make sure JQuery doesn't conflict with other JavaScript libraries. (Should be use just after the libraries declaration.)
jQuery.noConflict();
// Array containing conversion event tag information.
// - URL to look for. (See note)
// - Conversion event name.
// - Conversion event categories name.
// - Conversion event point when initialized.
// - Conversion event point when completed.
// Note: The order in the array is important.
// For example, don't put "/stores/" before "/stores/locator.html".
var tagList = [
['/contact-us/', 'Contact us', 'Call-to-action', '0', '10'],
['/online-application/', 'Apply online', 'Call-to-action', '0', '100']
];
// List the detected tags that must be initiated.
var tagDetected = [];
// Check for link that need to be tagged. Make sure is not already tagged.
jQuery(document).ready(function(){
jQuery("a:not([onclick*='cmCreateConversionEventTag'])").each(function(index) {
if (this.href != '') {
var i = findConversionLink(this.href);
if (i != -1) {
// Check if that tag have been already detected (so we won't initialize the same tags multiple time.)
if (jQuery.inArray(i, tagDetected) == -1) {
tagDetected.push(i);
}
}
}
});
// Founded some tag that need to be initiated?
if (tagDetected.length > 0) {
for (var i = 0; i < tagDetected.length; i++) {
for (var j = 0; j < tagList.length; j++) {
if (j == tagDetected[i]) {
cmCreateConversionEventTag(tagList[j][1], "1", tagList[j][2], tagList[j][3]);
}
}
}
}
// Add the conversion event tag to the onlick and onkeypress event of the link (if not already present)
jQuery("a:not([onclick*='cmCreateConversionEventTag'])").live('click keypress', function() {
var i = findConversionLink(this.href);
if (i != -1) {
cmCreateConversionEventTag(tagList[i][1], "2", tagList[j][2], tagList[i][4]);
}
});
});
// Check if a URL exsit in the array. If so, return "first" founded index.
// This is why we need to put "/stores/locator.html" before "/stores/" in the tagList array.
function findConversionLink (a_sURL) {
for (var i = 0; i < tagList.length; i++) {
if (a_sURL.indexOf(tagList[i][0]) != -1) {
return i;
}
}
return -1;
}
}
catch (err) {
// Do nothing.
}
// Licensed under the GPL Version 2 licenses.
try {
// Make sure JQuery doesn't conflict with other JavaScript libraries. (Should be use just after the libraries declaration.)
jQuery.noConflict();
// Array containing conversion event tag information.
// - URL to look for. (See note)
// - Conversion event name.
// - Conversion event categories name.
// - Conversion event point when initialized.
// - Conversion event point when completed.
// Note: The order in the array is important.
// For example, don't put "/stores/" before "/stores/locator.html".
var tagList = [
['/contact-us/', 'Contact us', 'Call-to-action', '0', '10'],
['/online-application/', 'Apply online', 'Call-to-action', '0', '100']
];
// List the detected tags that must be initiated.
var tagDetected = [];
// Check for link that need to be tagged. Make sure is not already tagged.
jQuery(document).ready(function(){
jQuery("a:not([onclick*='cmCreateConversionEventTag'])").each(function(index) {
if (this.href != '') {
var i = findConversionLink(this.href);
if (i != -1) {
// Check if that tag have been already detected (so we won't initialize the same tags multiple time.)
if (jQuery.inArray(i, tagDetected) == -1) {
tagDetected.push(i);
}
}
}
});
// Founded some tag that need to be initiated?
if (tagDetected.length > 0) {
for (var i = 0; i < tagDetected.length; i++) {
for (var j = 0; j < tagList.length; j++) {
if (j == tagDetected[i]) {
cmCreateConversionEventTag(tagList[j][1], "1", tagList[j][2], tagList[j][3]);
}
}
}
}
// Add the conversion event tag to the onlick and onkeypress event of the link (if not already present)
jQuery("a:not([onclick*='cmCreateConversionEventTag'])").live('click keypress', function() {
var i = findConversionLink(this.href);
if (i != -1) {
cmCreateConversionEventTag(tagList[i][1], "2", tagList[j][2], tagList[i][4]);
}
});
});
// Check if a URL exsit in the array. If so, return "first" founded index.
// This is why we need to put "/stores/locator.html" before "/stores/" in the tagList array.
function findConversionLink (a_sURL) {
for (var i = 0; i < tagList.length; i++) {
if (a_sURL.indexOf(tagList[i][0]) != -1) {
return i;
}
}
return -1;
}
}
catch (err) {
// Do nothing.
}













