0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Fixed invalid metadata for ghost analytics

refs https://github.com/TryGhost/Team/issues/1061

- Stripe checkout metadata only accepts value as string for a key, and ghost_analytics was incorrectly attaching object for entry id and source url
This commit is contained in:
Rishabh 2021-09-27 19:43:17 +05:30
parent 600640629f
commit fc7f3432bd

View file

@ -218,7 +218,8 @@ function setupGhostApi({siteUrl = window.location.origin}) {
};
const analyticsData = getAnalyticsMetadata();
if (analyticsData) {
metadataObj.ghost_analytics = analyticsData;
metadataObj.ghost_analytics_entry_id = analyticsData.entry_id;
metadataObj.ghost_analytics_source_url = analyticsData.source_url;
}
return makeRequest({
url,