Skip to content

Commit

Permalink
Update class-wc-integration-fb-conversion-pixel.php
Browse files Browse the repository at this point in the history
Added https to Facebook Pixel js request per current Facebook standard to avoid additional redirect from http.
  • Loading branch information
WiredWonder authored Apr 24, 2017
1 parent 24b67c9 commit 18bb6ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/class-wc-integration-fb-conversion-pixel.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function fb_tracking_pixel() {
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','//connect.facebook.net/en_US/fbevents.js');
document,'script','https://connect.facebook.net/en_US/fbevents.js');

fbq('init', '<?php echo esc_html( $this->fbid ); ?>');
fbq('track', 'PageView');
Expand Down

0 comments on commit 18bb6ce

Please sign in to comment.