wemake-services / vue-analytics-facebook-pixel

A small wrapper around Facebook Pixel API
MIT License
24 stars 19 forks source link

Allow access to all fbq events via raw query #3

Closed Jamiewarb closed 6 years ago

Jamiewarb commented 6 years ago

As it stands, there are elements of the FB Pixel that the wrapper prevents us accessing.

I've created a query method on the analytics.fbq object which will allow us to bypass the wrapper for things it doesn't yet handle.

This prevents us being limited by the wrapper. It is the same approach MatteoGabriele/vue-analytics takes.

An example use is Vue.analytics.fbq.query('consent', 'revoke');, as the wrapper currently does not support this.

https://developers.facebook.com/docs/facebook-pixel/events-advanced-use-cases/v3.1

Jamiewarb commented 6 years ago

@sobolevn I've updated the event and init methods to use query now, and removed that rogue URL.

I force pushed over the top for the URL change so it doesn't sit in this repo's history.

sobolevn commented 6 years ago

I will release v2 on the weekends.