huggettm Posted March 27, 2018 Share Posted March 27, 2018 Hi Guys, I'm looking for extensions to cover: Google Opt In reviews Facebook Pixel tracking (events) for remarketing Willing to pay if someone can help out? Quote Link to comment Share on other sites More sharing options...
Noodleman Posted March 27, 2018 Share Posted March 27, 2018 you won't need extensions for these, they are copy/paste code you add to your store theme. Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 27, 2018 Author Share Posted March 27, 2018 Thanks I cant seem to export the correct values for facebook pixels, tech support just keeps telling me to use smarty. Google reviews I thought i had the right code but it simply doesnt show up Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 27, 2018 Share Posted March 27, 2018 That's what I have been trying to say via the helpdesk. Thanks for clarifying @Noodleman Use the smarty debug tool to see what parameters are available and use them in your JavaScript code exactly like Google Analytics does. Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 27, 2018 Author Share Posted March 27, 2018 Hi Al, I know what you have been trying to say - I simply dont understand how the values from the smarty debug correspond. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 27, 2018 Share Posted March 27, 2018 Take this example. If you wanted the store name from the config data you would use: {$CONFIG.store_name} You can all see where I'm temporarily living now. Looking at the Google Analytics example for; {$GA_SUM.total} You would see $GA_SUM in blue text at the left and under value an array key of "total". Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 27, 2018 Author Share Posted March 27, 2018 Sorry if im being slow but I still dont understand what i need in the Facebook code for: email first name last name the product ID order sum please dont tell me to look it up in smarty again - its not helping me Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 27, 2018 Share Posted March 27, 2018 It's impossible to say without knowing which template you are putting it in and when/if you want it triggered at a certain time. Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 28, 2018 Author Share Posted March 28, 2018 Hi Al, As in my support request, I believe it needs to be installed on: main.php content.product.php: item id main.checkout.php: add to cart tracking, item id confirmed.php: email, order summary, item id, first name, last name Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 28, 2018 Share Posted March 28, 2018 OK so I'd suggest adding the JavaScript with dummy data and then use the {debug} tool to replace each variable at a time. So for the google example you'd have; 'revenue': '9.99', You can then replace with; 'revenue': '{$GA_SUM.total}', Please note that the JavaScript curly braces may break the smarty syntax so the literal tag may be used. Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 28, 2018 Author Share Posted March 28, 2018 ok ill try again - but in truth I do not have alot of time to dedicate to this which is why I am offering to pay for it to be done. Is there a way to place test orders and go through payment as a dummy without me keep paying for stuff? Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 28, 2018 Share Posted March 28, 2018 3 minutes ago, huggettm said: Is there a way to place test orders and go through payment as a dummy without me keep paying for stuff? Absolutely. Most payment gateways have a test mode or "sandbox" mode. Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 28, 2018 Author Share Posted March 28, 2018 Ok, for me UPG has not such mode and paypal throws up errors in sandbox mode. I still do not have the conversion code correct: <script> fbq('track', 'Purchase', { currency: 'USD', content_type: 'product', contents: [ { item_price: '{/literal}{$item.price}{literal}', id: '{/literal}{$item.product_code}{literal}', quantity: '{/literal}{$item.quantity}{literal}', } ], }); </script> Quote Link to comment Share on other sites More sharing options...
Noodleman Posted March 28, 2018 Share Posted March 28, 2018 (edited) Which page / template file is this code from? your literal tags are the wrong way around or you missed the open/close tags during your copy/paste :). try this {literal}<script> fbq('track', 'Purchase', { currency: 'USD', content_type: 'product', contents: [ { item_price: '{/literal}{$item.price}{literal}', id: '{/literal}{$item.product_code}{literal}', quantity: '{/literal}{$item.quantity}{literal}', } ], }); </script> {/literal} Edited March 28, 2018 by Noodleman Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 28, 2018 Author Share Posted March 28, 2018 apologies i just didnt copy those in {literal}<script> fbq('track', 'Purchase', { currency: 'USD', content_type: 'product', contents: [ { item_price: '{/literal}{$item.price}{literal}', id: '{/literal}{$item.product_code}{literal}', quantity: '{/literal}{$item.quantity}{literal}', } ], }); </script>{/literal} is what i had Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 28, 2018 Share Posted March 28, 2018 Look like you are pretty much there! Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 28, 2018 Author Share Posted March 28, 2018 one thing it has flagged is that it cant match the products to the catalogue upload, so i am just modifying the google base export to provide the product code instead of product id also, (although it doesnt work anyway as above) - the item price is not the full conversion value as it does not include shipping Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 28, 2018 Author Share Posted March 28, 2018 do you know how I can export the product code on the checkout page? id: '{/literal}{$item.product_code}{literal}', doesnt work for that? Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 28, 2018 Author Share Posted March 28, 2018 manually setting the product code matches it fine, so there is definitely something wrong in the export of the data (I think the same factor affects the google product reviews also) Smarty gives this: $ITEMS Origin: "Smarty object" Value Array (1) d8ae1ad510dbfcadfa2022b5ec743de1 => Array (52) product_id => "17834" product_code => "AC77145" quantity => 1 description => "Day of the Dead Serape<br><br> Male - Adult - One Size Fits Most <br><br> Con..." description_short => "" price => 20.52 name => "Day of the Dead Serape (Adult Costumes) - Male - One Size Fits Most" cat_id => "39" popularity => "292" sale_price => "0.00" cost_price => "13.38" stock_level => "339" stock_warning => "0" use_stock_level => "1" using $item or $items makes no difference - do i need to define something else first? Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 28, 2018 Share Posted March 28, 2018 The item key will only work if it is within a foreach loop of the order inventory items. Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 28, 2018 Author Share Posted March 28, 2018 so i need to include the facebook tracking in the google analytics loop? Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 28, 2018 Share Posted March 28, 2018 No. It will need its own one. Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 28, 2018 Author Share Posted March 28, 2018 Right.. Can I please reiterate my request for someone to do this paid. I am not a developer, I am a software user and business owner and have now spent another morning on this. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 28, 2018 Share Posted March 28, 2018 I'm 100% tied up to 6.2.0 & tech support. I can't take on any custom work I'm afraid. Hopefully @Noodleman can or someone else. Quote Link to comment Share on other sites More sharing options...
huggettm Posted March 28, 2018 Author Share Posted March 28, 2018 Yup thats fair enough, I would say though that facebook pixel tracking is a basic function in most other shopping carts now Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.