nrsoft
Forum Replies Created
-
I have actually created an account on Stape.io and started the implementation.
What does your premium plugin provide then as their tuturial seem quite complete to implement tracking for GA4 with ecommerce ability?
Thanks
Sorry for bothering you but I believe I know why now and you already replied to this issue earlier this year.
Looks like there is a redirect problem in my order-received page.
I have added the 2 constants as you suggested at the time and the datalayer is now loading and purchase event properly triggered.
define( 'GTMKIT_ON', true );
define( 'GTMKIT_WC_DEBUG_TRACK_PURCHASE', true );Thanks again for your quick reply and still interested to know more about the server-side implementation.
Alternatively how quick to implement (and reliable) is your server-side solution?
Is there any request / domain limit?
Been looking to move to server-side solution for a long time so happy to give it a go if the set up is well documented.
Forum: Reviews
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Tag placement issueHello all,
I had the same issue and have updated the following file
wp-content/plugins/complianz-gdpr/cookiebanner/class-banner-loader.php
The action responsible for inlining the script is
add_action( 'wp_print_footer_scripts', array( $this, 'inline_cookie_script' ), PHP_INT_MAX - 50 );
I have changed it to
add_action( 'wp_body_open', array( $this, 'inline_cookie_script' ), PHP_INT_MAX - 50 );
Obviously not an ideal solution but will do the trick until Complianz decide to look into this issue.
Hope this helps
- This reply was modified 1 week, 1 day ago by nrsoft.
@torbenlundsgaard no that’s fine you can close this one. Thanks again for your support.
Hello
Thanks for your great support!
I have installed the new version and the purchase event is now fired up! ( saw it in Real time so will confirm once it is in the real conversions tomorrow)
Can I remove the two constants then?
Also any idea about my second issue and the value (revenue) which is still at 0€?
Thanks again
NicolasHello
Thanks for the detailed answer.
I have placed an order yesterday and still had the page opened on my browser actually.
The
purchase
event is not present on the confirmation page.<script type="text/javascript" id="gtmkit-datalayer-js-before" data-cfasync="false" data-nowprocket="" data-cookieconsent="ignore"> /* <![CDATA[ */ const gtmkit_dataLayer_content = {"pageType":"page"}; dataLayer.push( gtmkit_dataLayer_content ); /* ]]> */ </script>
I don’t have any specific optimization on JS in WPRocket yet but since you said it could be linked to caching I have disabled the cache on the page
/commander/commande-recue/(.*)
I have a Sentry probe for all JS errors and there is nothing coming up on this page by the way.
Thanks again
Hello
Here is the log for 2 orders received this morning (website is in production so I can’t make an order myself)
Looks like the
purchase
event is triggered?? Still nothing on GA4 though ??2024-05-24T06:37:58+00:00 INFO Array ( [pageType] => order-received [event] => purchase [ecommerce] => Array ( [transaction_id] => 1839 [value] => 68.6 [tax] => 6.24 [shipping] => 0 [currency] => EUR [coupon] => maman15|mum15 [items] => Array ( [0] => Array ( [id] => 670 [item_id] => 670 [item_name] => Ile Saint Louis [currency] => EUR [price] => 34.3 [item_category] => Occasions spéciales [item_category2] => Shabbat [quantity] => 2 [coupon] => maman15|mum15 [discount] => 14.7 ) ) ) [new_customer] => 1 ) 2024-05-24T06:40:45+00:00 INFO Array ( [pageType] => order-received [event] => purchase [ecommerce] => Array ( [transaction_id] => 1840 [value] => 49.37 [tax] => 5.08 [shipping] => 6.43 [currency] => EUR [coupon] => maman15 [items] => Array ( [0] => Array ( [id] => 731 [item_id] => 731 [item_name] => Charonne [currency] => EUR [price] => 41.65 [item_category] => Occasions spéciales [item_category2] => Naissance [quantity] => 1 [coupon] => maman15 [discount] => 7.34 ) ) ) [new_customer] => 1 )
Let me know if you need something else.
Thanks
Done, thanks for your help in advance
OK merci pour votre suivi.
Cordialement
Bonjour,
Merci pour votre retour.
Non aucun poids n’a été configuré pour les articles.
Cordialement
Forum: Plugins
In reply to: [Smart Custom 404 Error Page] Error page trashed@petersplugins so far so good! Thanks for the update.
Forum: Plugins
In reply to: [Smart Custom 404 Error Page] Error page trashed@petersplugins I have the same problem and I have WPML on the websites where the problem occured if it can help.
Hello @aamahin
No problem for the suggestion.
In case anyone faces the same issue in the meantime I have solved the override this way in my child theme functions.php
function mep_cat_modify_taxonomy() { // get the arguments of the already-registered taxonomy $mep_cat_category_args = get_taxonomy('mep_cat'); // update slug $mep_cat_category_args->rewrite['slug'] = _x( 'your-new-slug', 'slug', 'your-domain' ); // re-register the taxonomy register_taxonomy('mep_cat', 'mep_events', (array)$mep_cat_category_args); } // hook it up to 11 so that it overrides the original register_taxonomy function add_action('init', 'mep_cat_modify_taxonomy', 11);
Thanks
Nicolas- This reply was modified 4 years, 3 months ago by nrsoft.
OK forget my message I didn’t see there was a
single_template
filter below so I have managed to achieve what I wanted a bit more easily…