@artisan-commerce/analytics-web 0.2.0-canary.109 → 0.2.0-canary.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs +4 -3
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.mjs +4 -3
- package/dist/bundle.mjs.map +1 -1
- package/dist/bundle.umd.js +4 -3
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/bundle.cjs
CHANGED
|
@@ -52,7 +52,7 @@ State$1._instance = null;
|
|
|
52
52
|
|
|
53
53
|
var name = "@artisan-commerce/analytics-web";
|
|
54
54
|
var description = "Artisn commerce analytics web library";
|
|
55
|
-
var version = "0.2.0-canary.
|
|
55
|
+
var version = "0.2.0-canary.109";
|
|
56
56
|
var type = "module";
|
|
57
57
|
var main = "./dist/bundle.cjs";
|
|
58
58
|
var module$1 = "./dist/bundle.mjs";
|
|
@@ -87,7 +87,7 @@ var dependencies = {
|
|
|
87
87
|
};
|
|
88
88
|
var devDependencies = {
|
|
89
89
|
"@artisan-commerce/products": "0.9.0-canary.69",
|
|
90
|
-
"@artisan-commerce/shopping-cart-core": "0.12.0-canary.
|
|
90
|
+
"@artisan-commerce/shopping-cart-core": "0.12.0-canary.103",
|
|
91
91
|
"@artisan-commerce/state": "0.3.0-canary.18",
|
|
92
92
|
"@artisan-commerce/types": "0.14.0-canary.46"
|
|
93
93
|
};
|
|
@@ -823,11 +823,12 @@ const postFacebookConversion = async (config) => {
|
|
|
823
823
|
const { apiURL, eventName, customData, authToken } = config;
|
|
824
824
|
const { eventSourceUrl, testCode } = config;
|
|
825
825
|
const { countryISOCode, fbAccessToken, fbPixelId } = config;
|
|
826
|
-
const { platform = "web" } = customData != null ? customData : {};
|
|
826
|
+
const { platform = "web", account_id } = customData != null ? customData : {};
|
|
827
827
|
const { debug } = State().state;
|
|
828
828
|
const selectedHeaders = new Headers();
|
|
829
829
|
selectedHeaders.set("Content-Type", "application/json");
|
|
830
830
|
selectedHeaders.set("Platform", platform);
|
|
831
|
+
selectedHeaders.set("Account", account_id);
|
|
831
832
|
selectedHeaders.set("Authorization", authToken);
|
|
832
833
|
const url = `${apiURL}/api/fb-conversion-api/conversions-api`;
|
|
833
834
|
const facebookConversionBody = {
|