Fix content ids for FB pixel
This commit is contained in:
@@ -50,7 +50,7 @@ class Product
|
|||||||
'images' => [],
|
'images' => [],
|
||||||
];
|
];
|
||||||
|
|
||||||
$product['@id'] = $entity->getBusProId();
|
$product['@id'] = $entity->getUid();
|
||||||
$product['@code'] = $entity->getCode();
|
$product['@code'] = $entity->getCode();
|
||||||
$product['name'] = preg_replace('/[\r\n\s]+/', ' ', $entity->getName()) . ' - ' . $entity->getConcept()->getName();
|
$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 Watchlist from './components/Watchlist.vue'
|
||||||
import HotelList from './components/HotelList.vue'
|
import HotelList from './components/HotelList.vue'
|
||||||
import ReferrerLink from './components/ReferrerLink.vue'
|
import ReferrerLink from './components/ReferrerLink.vue'
|
||||||
|
import FacebookPixel from './components/FacebookPixel.vue'
|
||||||
|
|
||||||
// Define global constants
|
// Define global constants
|
||||||
const $window = $(window);
|
const $window = $(window);
|
||||||
@@ -63,7 +64,8 @@ new Vue({
|
|||||||
Watchlist,
|
Watchlist,
|
||||||
HotelList,
|
HotelList,
|
||||||
ReferrerLink,
|
ReferrerLink,
|
||||||
MyEp: () => import('./myep/components/App.vue')
|
MyEp: () => import('./myep/components/App.vue'),
|
||||||
|
FacebookPixel
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</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>
|
</f:section>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user