- Beranda
- Komunitas
- Tech
- Website, Webmaster, Webdeveloper
[ask] facebook pixel event
TS
Jig0R
[ask] facebook pixel event
gan ane mau tanya gan cara modif ini gimana yahh gan
ane punya code seperti ini
ini kode dari facebook nya
Pertanyaan nya ane mau nambahin content_ids: , content_type: sedangkan yang sudah ada cuman fbq( \'track\', \'' . $atts['tracking'] . '\');
caranya gimana gan
ane punya code seperti ini
Code:
function sp_button_bbm_content( $atts ) {
$atts = shortcode_atts(
array(
'icon' => '',
'pin' => '',
'text' => '',
'color' => '',
'tracking' => '',
), $atts );
return '<a href="bbmi://'. $atts['pin'] . '">
<button class="bbm-button" style="background-color: ' . $atts['color'] . '">
<span class="' . $atts['icon'] . '"></span>' . $atts['text'] . '
</button>
</a>' .
'[removed]
$( document ).ready(function() {
$( ".bbm-button" ).click(function() {
fbq( \'track\', \'' . $atts['tracking'] . '\');
});
});
[removed]';
}
ini kode dari facebook nya
Code:
[removed]
fbq('track', 'AddToCart', {
content_ids: ['1234', '1853', '9386'],
content_type: 'product'
value: 3.50,
currency: 'USD'
});
[removed]
Pertanyaan nya ane mau nambahin content_ids: , content_type: sedangkan yang sudah ada cuman fbq( \'track\', \'' . $atts['tracking'] . '\');
caranya gimana gan
0
442
0
Guest
Tulis komentar menarik atau mention replykgpt untuk ngobrol seru
Guest
Tulis komentar menarik atau mention replykgpt untuk ngobrol seru
Komunitas Pilihan