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:
parent
600640629f
commit
fc7f3432bd
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue