Fix content ids for FB pixel
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user