Marviene
Forum Replies Created
-
I am getting errors. I think I am not understanding how to do this:
“For this code to work you need to also create a GTM data layer variable where you read the ecommerce datalayer item and set it to “Version 1”.”
I created a data layer variable with ecommerce.checkout.products.1.name using Version 1 and I’m still getting errors. Same thing with ecommerce.checkout.products.name.
This is the error, thrown on the Custom JavaScript variable: Unknown variable ‘ecommerce’ found in another variable. Edit the variable and remove the reference to the unknown variable.
I copied and pasted it exactly, which is why I think I messed up elsewhere:
function() {
var ecom = {{ecommerce}},
prod_names = [];for( var i=0; i<ecom.checkout.products; i++ ) {
prod_names.push(ecom.checkout.products[i].name);
}return prod_names.join(“,”);
}-
I think I have it! Thank you so much for the JavaScript Custom Variable. I’d have done it the long hard way otherwise.
If I understand it correctly then once I have these two new variables in place I am done since I have already created separate triggers for each of these (that are attached to tags):
gtm4wp.addProductToCartEEC
gtm4wp.productClickEEC
gtm4wp.removeFromCartEEC
gtm4wp.checkoutOptionEEC
gtm4wp.changeDetailViewEEC… on a somewhat related tangent… I don’t understand the difference between checkout option and change detail view.
I’m really new at this and until your plugin I struggled for years with GTM. Your plugin and clear way of answering questions has been invaluable to me. Thank you so much! You are amazing.
I finally figured it out. On one GTM account I didn’t check the box in your WordPress plugin to track the visitorTypes and then for the other GTM account I put a capital V in visitorTypes. : ( Sorry!
Thank you so much for responding. I love the plugin. It has got me further than any other method I’ve tried in learning how to do tags. Now I need to figure out how to set up the adwords trigger, track media and video events!
- This reply was modified 7 years, 5 months ago by Marviene. Reason: forgot to mark this as resolved!
Forum: Plugins
In reply to: [AutoChimp] Fatal Error after UpgradeI’m getting an error now : (
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/marviene/public_html/wp-content/plugins/autochimp/autochimp.php on line 852
I uninstalled and re installed – it immediately threw the same error.
I love AutoChimp. It’s still working on my client’s sites but not mine, and a few of them run the same theme and a lot of the same other plugins.
Forum: Fixing WordPress
In reply to: Front-end warning: Missing Argument for wpdbThank you Otto,
It’s actually quite a relief that these holes aren’t easy to hack. We’ve asked the theme maker to take a look at it.
: ) Have a good day and once again, thank you!
Forum: Fixing WordPress
In reply to: Front-end warning: Missing Argument for wpdbMr. Wood, you said “This code is dangerous, because it leads to the possibility of what is called an “SQL Injection Exploit”. Which is shorthand for a specific way to hack your site.”
Do you think that the 3 theme wpdb errors I posted above – that first appeared after this WP update – are the reasons that my Amazon banners & Widgets were being hijacked by stampedemedia?
&…. would you PLEASE look at the 3 errors I posted above and tell me the right code? Pretty please?
Forum: Fixing WordPress
In reply to: Front-end warning: Missing Argument for wpdbI’m getting these errors also. I use a Nimble theme. Errors on lines 8, 81 & 102
Warning: Missing argument 2 for wpdb::prepare(), called in /home/marviene/public_html/wp-content/themes/dt-nimble/functions/core/core-filters.php on line 8 and defined in /home/marviene/public_html/wp-includes/wp-db.php on line 990
and
Warning: Missing argument 2 for wpdb::prepare(), called in /home/marviene/public_html/wp-content/themes/dt-nimble/functions/core/core-functions.php on line 81 and defined in /home/marviene/public_html/wp-includes/wp-db.php on line 990
and
Warning: Missing argument 2 for wpdb::prepare(), called in /home/marviene/public_html/wp-content/themes/dt-nimble/functions/core/core-functions.php on line 102 and defined in /home/marviene/public_html/wp-includes/wp-db.php on line 990
HELP!!