Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Quizz results as a conversion goal in GA
(1 viewing) (1) Guest
"ARI Stream Quiz" WordPress plugin
Go to bottomPage: 12
TOPIC: Quizz results as a conversion goal in GA
#68261
Re:Quizz results as a conversion goal in GA 2 Years, 5 Months ago Karma: 746
Hello,

The plugin (v. 1.7.0) supports stream_quiz:show_results event. It can be used to execute code from gregor.mercina message. Add the following code to "Custom JS code" parameter on "ARI Stream Quiz -> Settings -> Advanced" page:

Code:


jQuery(document).on('stream_quiz:show_results', function(ev, data) {
  var quiz = data.quiz;
  window.dataLayer = window.dataLayer || [];
  window.dataLayer.push({
    'event' : 'quiz',
    'location' : quiz.options.data.share.title
  });
});



Regards,
ARI Soft
The administrator has disabled public write access.
 
#68263
Re:Quizz results as a conversion goal in GA 2 Years, 5 Months ago Karma: 0
Does that mean the quoted code is incomplete and won't send quiz coversions to GA?
Is it possible you can post a fully working js example for us code chumps, please?

Also, when trying to update to 1.7 in wordpress I get an error (I have pro version installed):
Update failed: The package could not be installed.
Last Edit: 2021/10/17 09:17 By yuyu.
The administrator has disabled public write access.
 
#68264
Re:Quizz results as a conversion goal in GA 2 Years, 5 Months ago Karma: 746
The code sends 'quiz' event. You can modify it for your needs (send your event with other name/parameters).

Make sure an API key is specified in plugin settings like is described here. It requires to enable auto-updates.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12