Plugin Author
Aert
(@aahulsebos)
Hi @khuffu,
Can you tell me how this login form is set-up, by a plugin for example? If the form itself might track user behavior by any means, it might be Complianz will block the tracking while the form is dependent on the script to run.
regards Aert
Thread Starter
khuffu
(@khuffu)
@aahulsebos Thank you for your response.
Yes, the login form is created using the following plugin: https://docs.oceanwp.org/article/499-how-to-show-popup-login-link
Is it possible to whitelist the plugin?
I have had a look, no tracking exists from what I can see.
Plugin Author
Aert
(@aahulsebos)
Hi @khuffu,
Could you enable safe mode under settings, and see if this works? The online inline scripts that are blocked are Analytics and Advanced Ads. Enabling safe mode will let us know if it’s due to the cookie blocker,
regards Aert
Thread Starter
khuffu
(@khuffu)
Plugin Author
Aert
(@aahulsebos)
Hi @khuffu,
I’m almost certain Complianz is not blocking the plugin itself. It looked like the login form was dependent on Analytics being loaded, probably because it registers click events or certain user interaction.
The only error I saw was; ga not defined, which is due to your woocommerce tracking script, and the consent needed for Google Analytics to initialize in the first place.
Could you disable safe mode, and under Wizard – Cookies – Statistics Configuration change; do you want to ask consent to NO, and try again?
regards Aert
Thread Starter
khuffu
(@khuffu)
Hi @aahulsebos
I am rather certain that it is the cookie banner blocking it, as the plugin developer also mentions that for the login/registration actions to function it requires cookies acceptance.
We can make the cookie banner more central on the page and thus forcing the user to accept it before attempting anything. But that doesnt solve the problem of the user having to refresh the page after acceptance.
I looked into Wizard>Cookies>Statistics Configuration and the only option I have there is to input the UA-Code.
Plugin Author
Aert
(@aahulsebos)
Hi @khuffu,
Could you try deleting this script, and try?
<!-- WooCommerce JavaScript -->
<script type="text/javascript">
jQuery(function($) {
$( '.add_to_cart_button:not(.product_type_variable, .product_type_grouped)' ).click( function() {
ga( 'ec:addProduct', {'id': ($(this).data('product_sku')) ? ($(this).data('product_sku')) : ('#' + $(this).data('product_id')),'quantity': $(this).data('quantity')} );
ga( 'ec:setAction', 'add' );
ga( 'send', 'event', 'UX', 'click', 'add to cart' );
});
ga( 'send', 'pageview' );
});
</script>
Thread Starter
khuffu
(@khuffu)
@aahulsebos That seems to have been the issue, once removed it worked as intended. Thank you!
-
This reply was modified 5 years, 7 months ago by
khuffu.
Hi @khuffu
Great to hear that your issue is resolved! Could you tell us what you think of the plugin or the support by casting your Review here? We’d love to hear your feedback!