> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: listStatistics(campaignIds: Array) # Method package: wixEmailMarketingV2 # Method menu location: wixEmailMarketingV2 --> campaigns --> listStatistics # Method Link: https://dev.wix.com/docs/velo/apis/wix-email-marketing-v2/campaigns/list-statistics.md # Method Description: Retrieves a list of statistics for up to 100 selected campaigns. For each campaign, you receive the total activity count for the campaign's landing page and email. For example, the total amount of times the landing page was opened, or the total amount of email recipients that clicked a link in an email. Use [List Campaigns](#listcampaigns) to retrieve additional information for your campaigns. Use [List Recipients](#listrecipients) to retrieve a list of recipients and their activities related to a selected campaign. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Retrieves a list of statistics for up to 100 selected campaigns (dashboard page code) ```javascript import { campaigns } from 'wix-email-marketing.v2'; // Sample campaignIds = ['ea46013c-bbbf-4617-ad5d-9247bc4c0970', 'ea46013c-bb6f-4617-ad5d-9247bc4g5478', 'ea46013c-bf9f-4617-ad5d-9247bcg0837']; export async function listStatistics(campaignIds) { try { const results = await campaigns.listStatistics(campaignIds); console.log("Success! Your statistics are listed.") return results; } catch (error) { console.error(error); } } /* Promise resolves to: * { * "statistics": [ * { * "campaignId": "ea46013c-bbbf-4617-ad5d-9247bc4c0970", * "landingPage": { * "opened": 0, * "clicked": 0 * }, * "email": { * "delivered": 1, * "opened": 1, * "clicked": 0, * "bounced": 0, * "complained": 0, * "notSent": 0 * }, * { * "campaignId": "ea46013c-bb6f-4617-ad5d-9247bc4g5478", * "landingPage": { * "opened": 8, * "clicked": 12 * }, * "email": { * "delivered": 35, * "opened": 22, * "clicked": 15, * "bounced": 0, * "complained": 0, * "notSent": 0 * }, * { * "campaignId": "ea46013c-bf9f-4617-ad5d-9247bcg0837", * "landingPage": { * "opened": 10, * "clicked": 10 * }, * "email": { * "delivered": 55, * "opened": 42, * "clicked": 13, * "bounced": 1, * "complained": 0, * "notSent": 0 * } * } * ] * } */ ``` ## Retrieves a list of statistics for up to 100 selected campaigns (export from backend code) ```javascript import { Permissions, webMethod } from 'wix-web-module'; import { campaigns } from 'wix-email-marketing.v2'; // Sample campaignIds = ['ea46013c-bbbf-4617-ad5d-9247bc4c0970', 'ea46013c-bb6f-4617-ad5d-9247bc4g5478', 'ea46013c-bf9f-4617-ad5d-9247bcg0837']; export const listStatistics = webMethod(Permissions.Anyone, async (campaignIds) => { try { const results = await campaigns.listStatistics(campaignIds); console.log("Success! Your statistics are listed.") return results; } catch (error) { console.error(error); } }); /* Promise resolves to: * { * "statistics": [ * { * "campaignId": "ea46013c-bbbf-4617-ad5d-9247bc4c0970", * "landingPage": { * "opened": 0, * "clicked": 0 * }, * "email": { * "delivered": 1, * "opened": 1, * "clicked": 0, * "bounced": 0, * "complained": 0, * "notSent": 0 * }, * { * "campaignId": "ea46013c-bb6f-4617-ad5d-9247bc4g5478", * "landingPage": { * "opened": 8, * "clicked": 12 * }, * "email": { * "delivered": 35, * "opened": 22, * "clicked": 15, * "bounced": 0, * "complained": 0, * "notSent": 0 * }, * { * "campaignId": "ea46013c-bf9f-4617-ad5d-9247bcg0837", * "landingPage": { * "opened": 10, * "clicked": 10 * }, * "email": { * "delivered": 55, * "opened": 42, * "clicked": 13, * "bounced": 1, * "complained": 0, * "notSent": 0 * } * } * ] * } */ ``` ---