Jump to content

Probleme fonctionnement du module Facebook Pixel.


Recommended Posts

Bonjour j'ai un porblème pour faire fonctionner le module pixel de Facebook. J'ai bien rentré tous les élément pour le faire fonctionner et facebook me dit qu'il est actif.
Lorsque je lance un test sur la boutique il me dit qu'il n'y a aucun actinvité.
En cherchant ils expliquent qu'il faut modifier le Header de la page d'accueil.
Et là je m'aperçoisde ce que je pense être un problème.
Le module a bien modifier le Header mais à fait joujou avec les slash et les antislash.
Voici le code source de la page tel que restitué par mon navigateur :
 

<script type="text/javascript">
        var pixel_fc = "https:\/\/boutique.ombresoleil.fr\/index.php?fc=module&module=pspixel&controller=FrontAjaxPixel";
        var prestashop = {"cart":{"products":[],"totals":{"total":{"type":"total","label":"Total","amount":0,"value":"0,00\u00a0\u20ac"},"total_including_tax":{"type":"total","label":"Total TTC","amount":0,"value":"0,00\u00a0\u20ac"},"total_excluding_tax":{"type":"total","label":"Total HT :","amount":0,"value":"0,00\u00a0\u20ac"}},"subtotals":{"products":{"type":"products","label":"Sous-total","amount":0,"value":"0,00\u00a0\u20ac"},"discounts":null,"shipping":{"type":"shipping","label":"Livraison","amount":0,"value":"gratuit"},"tax":null},"products_count":0,"summary_string":"0 articles","vouchers":{"allowed":0,"added":[]},"discounts":[],"minimalPurchase":0,"minimalPurchaseRequired":""},"currency":{"name":"euro","iso_code":"EUR","iso_code_num":"978","sign":"\u20ac"},"customer":{"lastname":null,"firstname":null,"email":null,"birthday":null,"newsletter":null,"newsletter_date_add":null,"optin":null,"website":null,"company":null,"siret":null,"ape":null,"is_logged":false,"gender":{"type":null,"name":null},"addresses":[]},"language":{"name":"Fran\u00e7ais (French)","iso_code":"fr","locale":"fr-FR","language_code":"fr","is_rtl":"0","date_format_lite":"d\/m\/Y","date_format_full":"d\/m\/Y H:i:s","id":1},"page":{"title":"","canonical":null,"meta":{"title":"Ombresoleil Cr\u00e9ations","description":"Boutique propuls\u00e9e par PrestaShop","keywords":"","robots":"index"},"page_name":"index","body_classes":{"lang-fr":true,"lang-rtl":false,"country-FR":true,"currency-EUR":true,"layout-full-width":true,"page-index":true,"tax-display-enabled":true},"admin_notifications":[]},"shop":{"name":"Ombresoleil Cr\u00e9ations","logo":"\/img\/prestashop-logo-1590249092.jpg","stores_icon":"\/img\/logo_stores.png","favicon":"\/img\/favicon.ico"},"urls":{"base_url":"https:\/\/boutique.ombresoleil.fr\/","current_url":"https:\/\/boutique.ombresoleil.fr\/index.php","shop_domain_url":"https:\/\/boutique.ombresoleil.fr","img_ps_url":"https:\/\/boutique.ombresoleil.fr\/img\/","img_cat_url":"https:\/\/boutique.ombresoleil.fr\/img\/c\/","img_lang_url":"https:\/\/boutique.ombresoleil.fr\/img\/l\/","img_prod_url":"https:\/\/boutique.ombresoleil.fr\/img\/p\/","img_manu_url":"https:\/\/boutique.ombresoleil.fr\/img\/m\/","img_sup_url":"https:\/\/boutique.ombresoleil.fr\/img\/su\/","img_ship_url":"https:\/\/boutique.ombresoleil.fr\/img\/s\/","img_store_url":"https:\/\/boutique.ombresoleil.fr\/img\/st\/","img_col_url":"https:\/\/boutique.ombresoleil.fr\/img\/co\/","img_url":"https:\/\/boutique.ombresoleil.fr\/themes\/classic\/assets\/img\/","css_url":"https:\/\/boutique.ombresoleil.fr\/themes\/classic\/assets\/css\/","js_url":"https:\/\/boutique.ombresoleil.fr\/themes\/classic\/assets\/js\/","pic_url":"https:\/\/boutique.ombresoleil.fr\/upload\/","pages":{"address":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=address","addresses":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=addresses","authentication":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=authentication","cart":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=cart","category":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=category","cms":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=cms","contact":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=contact","discount":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=discount","guest_tracking":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=guest-tracking","history":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=history","identity":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=identity","index":"https:\/\/boutique.ombresoleil.fr\/index.php","my_account":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=my-account","order_confirmation":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=order-confirmation","order_detail":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=order-detail","order_follow":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=order-follow","order":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=order","order_return":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=order-return","order_slip":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=order-slip","pagenotfound":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=pagenotfound","password":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=password","pdf_invoice":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=pdf-invoice","pdf_order_return":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=pdf-order-return","pdf_order_slip":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=pdf-order-slip","prices_drop":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=prices-drop","product":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=product","search":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=search","sitemap":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=sitemap","stores":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=stores","supplier":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=supplier","register":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=authentication&create_account=1","order_login":"https:\/\/boutique.ombresoleil.fr\/index.php?controller=order&login=1"},"alternative_langs":{"fr":"https:\/\/boutique.ombresoleil.fr\/index.php?id_lang=1"},"theme_assets":"\/themes\/classic\/assets\/","actions":{"logout":"https:\/\/boutique.ombresoleil.fr\/index.php?mylogout="},"no_picture_image":{"bySize":{"small_default":{"url":"https:\/\/boutique.ombresoleil.fr\/img\/p\/fr-default-small_default.jpg","width":98,"height":98},"cart_default":{"url":"https:\/\/boutique.ombresoleil.fr\/img\/p\/fr-default-cart_default.jpg","width":125,"height":125},"home_default":{"url":"https:\/\/boutique.ombresoleil.fr\/img\/p\/fr-default-home_default.jpg","width":250,"height":250},"medium_default":{"url":"https:\/\/boutique.ombresoleil.fr\/img\/p\/fr-default-medium_default.jpg","width":452,"height":452},"large_default":{"url":"https:\/\/boutique.ombresoleil.fr\/img\/p\/fr-default-large_default.jpg","width":800,"height":800}},"small":{"url":"https:\/\/boutique.ombresoleil.fr\/img\/p\/fr-default-small_default.jpg","width":98,"height":98},"medium":{"url":"https:\/\/boutique.ombresoleil.fr\/img\/p\/fr-default-home_default.jpg","width":250,"height":250},"large":{"url":"https:\/\/boutique.ombresoleil.fr\/img\/p\/fr-default-large_default.jpg","width":800,"height":800},"legend":""}},"configuration":{"display_taxes_label":true,"is_catalog":false,"show_prices":true,"opt_in":{"partner":true},"quantity_discount":{"type":"discount","label":"Remise"},"voucher_enabled":0,"return_enabled":0},"field_required":[],"breadcrumb":{"links":[{"title":"Accueil","url":"https:\/\/boutique.ombresoleil.fr\/index.php"}],"count":1},"link":{"protocol_link":"https:\/\/","protocol_content":"https:\/\/"},"time":1591119487,"static_token":"6bc52d0e87f2b797d2a88977b99581a3","token":"c0dcb9b794684666b59d790fdead9222"};
      </script>

J'aimerai votre avis... Et si il y a bien un problème comment le corriger ?

Link to comment
Share on other sites

Tout est parfait dans ton code ... c'est normal de voir les / convertis en \/  (json)

ET le tracking est bien envoyé comme tu peux le contater

Citation

Request URL:https://www.facebook.com/tr/?id=302203164114811&ev=PageView&dl=https%3A%2F%2Fboutique.ombresoleil.fr%2Findex.php&rl=&if=false&ts=1591120745906&sw=1920&sh=1080&v=2.9.18&r=stable&a=plprestashop-download&ec=0&o=30&fbp=fb.1.1591120419005.1598895302&it=1591120745746&coo=false&rqm=GET

 

Link to comment
Share on other sites

@doekia Mercipour ta réponse rapide, donc c'est déjà un premier bon point.
Ce que je ne comprends pas c'est ça :
image.png.8a551e2ba74923e291f1b8819bd8ac32.png

Alors d'un coté (coté boutique il me dit que c'est activé, et coté facebook il me dit que ca l'est pas ! ) A s'arracher les cheveux ! :(

Link to comment
Share on other sites

Ok donc si je comprend bien ce que tu es en train de me dire, (et en essayant de comprendre l'aide facebook en parallèle) il faut que j'ajoute des évènement dans le code de la boutique.
Y a moyen de faire ça depuis le back de Prestashop ou faut absolument que j'aille trifouiller le code ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...