acdesigns
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Mobile Screen Flicker on Text Input FieldThank you very much for the CSS suggestion.
That seems to have fixed the issue for now.
If I find the root cause, I’ll definitely let you know.
Thanks again!
Forum: Plugins
In reply to: [Calculated Fields Form] Mobile Screen Flicker on Text Input FieldThank you very much for your quick reply.
The issue appears on both iOS Safari and iOS Chrome.
When testing the form directly at that link you sent, the issue is not present.
So it’s likely some conflict with a theme or plugin as you mentioned.
Could you please remove the link to my site from your last message as it’s still in development? Thank you.
Thank you for fixing that.
Will do. Thanks.
@mooveagency – I have a question about how this function would work with the geolocation option in the premium plugin.
I understand if I enable the geolocation option for EU, users from the other countries will have cookies and scripts activated by default (i.e. they will not see the Cookie Banner at all).
So will this code above still work with the geolocation option enabled?
Since the WooCommerce Google Analytics tracking code is set to be disabled by default, and there is now no trigger (i.e. user clicking Accept) to re-enable the tracking code.
@mooveagency – That is awesome. Thank you!
@jcwd – Thanks heaps for posting your solution. I’m not technical so it’s definitely something I couldn’t have figured out myself.
I was testing out your function but couldn’t get it working, but then realised it was for GDPR Cookie Consent while I was trying to get it work with GDPR Cookie Compliance.
I was also trying out the GDPR Cookie Consent plugin but liked GDPR Cookie Compliance as the paid plug-in has better control over the geolocations the banner is displayed in.
As I said, I’m not coder, but I did manage to hack together something for GDPR Cookie Compliance based on your solution. Thanks heaps again for your solution.
add_action( 'init', 'maybe_consent_woocommerce_google_analytics'); function maybe_consent_woocommerce_google_analytics() { // Disable WooCommerce Google Analytics displaying tracking code by default $integrations = WC()->integrations->get_integrations(); remove_action('wp_head', array($integrations['google_analytics'], 'tracking_code_display'), 999999 ); // Display the tracking code if the user has accepted the GDPR Cookie Compliance policy if ($_COOKIE['moove_gdpr_popup'] != null) { add_action('wp_head', array($integrations['google_analytics'], 'tracking_code_display'), 999999 ); } }
- This reply was modified 4 years, 9 months ago by acdesigns.
Thanks for confirming John.