Fix content ids for FB pixel

This commit is contained in:
Björn Fromme
2018-10-17 10:53:25 +02:00
parent 3231692876
commit c49762755d
3 changed files with 5 additions and 2 deletions
@@ -50,7 +50,7 @@ class Product
'images' => [],
];
$product['@id'] = $entity->getBusProId();
$product['@id'] = $entity->getUid();
$product['@code'] = $entity->getCode();
$product['name'] = preg_replace('/[\r\n\s]+/', ' ', $entity->getName()) . ' - ' . $entity->getConcept()->getName();
@@ -31,6 +31,7 @@ import WatchlistToggle from './components/WatchlistToggle.vue'
import Watchlist from './components/Watchlist.vue'
import HotelList from './components/HotelList.vue'
import ReferrerLink from './components/ReferrerLink.vue'
import FacebookPixel from './components/FacebookPixel.vue'
// Define global constants
const $window = $(window);
@@ -63,7 +64,8 @@ new Vue({
Watchlist,
HotelList,
ReferrerLink,
MyEp: () => import('./myep/components/App.vue')
MyEp: () => import('./myep/components/App.vue'),
FacebookPixel
},
data () {
return {
@@ -47,6 +47,7 @@
</div>
</div>
</div>
<facebook-pixel :values="{ content_ids: [ <f:format.raw>{region.uid}</f:format.raw> ], content_name: '<f:format.raw>{region.nameInternal}</f:format.raw>', content_type: 'region' }"></facebook-pixel>
</f:section>
</html>