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

Commit

Permalink
Bump to version 1.0.7
Browse files Browse the repository at this point in the history
1. Add Piwik logs for several quiz actions
  • Loading branch information
Aaron Huisinga committed May 4, 2017
1 parent a658309 commit 8533644
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions assets/js/scripts.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
jQuery(function ($) {
jQuery('document').ready(function ($) {
_paq.push(['trackEvent', 'Quiz', 'Unique Visitor']);

// Simple AJAX listeners
$(document).bind("ajaxSend", function () {
$('.btn-primary').attr('disabled', 'disabled');
Expand All @@ -11,6 +13,7 @@ jQuery(function ($) {
updateProgressBar(1);
$('.footer').addClass('animated fadeOutDown');
$('.footer-quiz').addClass('animated fadeInUpBig').show();
_paq.push(['trackEvent', 'Quiz', 'Started']);

setTimeout(function () {
$('.footer').hide();
Expand Down Expand Up @@ -104,6 +107,7 @@ jQuery(function ($) {
// Show quiz results modal
$('#get-results').click(function () {
$('#quiz-results').modal('show');
_paq.push(['trackEvent', 'Quiz', 'Opened Modal']);

return false;
});
Expand Down Expand Up @@ -314,6 +318,10 @@ jQuery(function ($) {
}
}

if (step != '') {
_paq.push(['trackEvent', 'Quiz', 'Answered Question', step]);
}

var next = active.nextAll('.page').first();
active.removeClass('fadeIn fadeInUpBig fadeInDownBig fadeOutUpBig fadeOutDownBig').addClass('fadeOutUpBig');
next.removeClass('fadeIn fadeInUpBig fadeInDownBig fadeOutUpBig fadeOutDownBig').addClass('animated fadeInUpBig').show();
Expand Down
4 changes: 2 additions & 2 deletions chiro-quiz.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
* Plugin Name: Chiropractic Quiz
* Version: 1.0.6
* Version: 1.0.7
* Plugin URI: https://platform.marketing/
* Description: Simple chiropractic lead generation through a quiz that helps qualify prospective patients.
* Author: Platform Marketing
Expand All @@ -20,7 +20,7 @@
define( 'CHIRO_QUIZ_PLUGIN_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );

if ( ! defined( 'CHIRO_QUIZ_PLUGIN_VERSION' ) )
define( 'CHIRO_QUIZ_PLUGIN_VERSION', '1.0.6' );
define( 'CHIRO_QUIZ_PLUGIN_VERSION', '1.0.7' );

require_once( 'classes/class-chiro-quiz.php' );

Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: Aaron Huisinga
Tags: chiropractic, platform, chiro quiz
Requires at least: 4.0
Tested up to: 4.7.4
Stable tag: 1.0.6
Stable tag: 1.0.7

Simple chiropractic lead generation through a quiz that helps qualify prospective patients.

Expand Down

0 comments on commit 8533644

Please sign in to comment.