Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guide iconUser guide
Developer guide iconDeveloper guide
Admin guide iconAdmin guide
English
  • Русский
  • English
Login
    User documentationGetting StartedFAQAltcraft glossary
      Profiles and databasesarrow
    • Subscription resourcesManaging databasesSubscriber profileProfiles import and data updateCommon Errors When Importing ProfilesScheduled customer data importManaging Data TablesAutomatic data collectionBulk customers profiles updateDouble opt-in subscriptionSuppression listsProfile relationsProfile history exportProfile exportCreating a static segment based on import resultsHow to open a CSV fileMatchingTypes of fields in the databaseGlobal control groupsSubscription Manager
      Communication channelsarrow
      • Email channelarrow
      • Email: ISP interactions best practices
          First mailingarrow
        • Quick StartEmail
        Email: sending domain configurationEmail: setting up and using postmasters
        Push Channelarrow
        • Mobile Pusharrow
        • First Mobile Push MailingНастройка и подключение
            Провайдеры Mobile Pusharrow
          • Apple Push Notification ServiceYandex.AppMetricaFirebase Cloud MessagingHuawei Mobile ServicesRuStore
            Integrate your app with Altcraftarrow
          • Обработка и добавление подпискиРегистрация событийПровайдеры: структура push-сообщения
          Web Pusharrow
        • First Web Push MailingResource and Website Setup
            Web Push Providersarrow
          • Firebase Cloud messagingApple SafariMozilla Services
          Transferring Data to the PlatformWeb Push SDK MethodsPWA and Push Notifications
            Migration and Subscription Transferarrow
          • Migrating push subscriptions from third-party servicesHow to transfer push subscriptions configured for Safari?Migration from OneSignal
        SMS channelarrow
      • SMS
      WhatsAppViber*™
        Telegramarrow
      • Telegram BotTelegram Group
        Maxarrow
      • MAX BotMAX Group
      NotifyCommunication Channels WorkflowРуководство: SMS-рассылка через VK NotifyРуководство: SMS-рассылка через УТШРуководство: push-рассылка через сервис от "Согласие"
      Segmentationarrow
    • Static SegmentsDynamic SegmentsUpdatable Segments
        Segmentation Conditionsarrow
      • Segmentation by Profile dataSegmentation by Interactions with EntitiesSegmentation by Activity of the channelSegmentation by external dataSegmentation by external SQL tablesSegmentation by Profile structure
      Best Send Time (BST)Logical operators "AND" and "OR"Recommendations for working with segments
      Message templatesarrow
      • Working with message templatesarrow
      • Working in the editorEmail templateSMS templatePush templateMAX templateTelegram templateWhatsApp templateViber templateNotify template
        Visual editor for email-templatearrow
      • Visual editor interfaceAdding blocksElements and their settingsCustom blocksStyle managerLayer manager
      Template fragmentsImage galleryContent personalizationCreating tables based on array elementsBlock editor for email template
        Altcraft Variables and Functionsarrow
      • Logical expressions in messagesLoops in messagesMarket variables in templatesUsing the JSONPath functionality
        Dynamic content in messagesarrow
      • Dynamic HTML contentDynamic JSON contentContent from SQL database in templatesDynamic API content
      Importing and exporting a message templateImporting a template from a third-party serviceExporting a template from Pixcraft
      Mailingsarrow
    • Mailings calendarBroadcast mailingsRegular mailingTrigger mailingMultivariate testingMailing testingMailing schedulePlacement mailing
      Automation scenariosarrow
    • Managing scenariosNodes of the scenarioClassic marketing scenariosStep-by-step welcome scenario guideScenario for automatic notification of the managerAbandoned cart scenario
      Marketarrow
    • Market settings
        Productsarrow
      • How to create a product manuallyHow to import a product from a fileScheduled product importProduct and SKU SegmentsPreparing the YML file
      OrdersMarket variables in message templateGuide: how to send an order confirmation email
      Loyalty programsarrow
    • Loyalty programsLoyalty integration with external systemsCreating a loyalty program from scratchBasic loyalty program use casesOrder SegmentsPromotion codes
      Reports and analyticsarrow
    • Channel reportTraffic report
        Summary reportarrow
      • Summary report metrics
      Cohorts reportLifetime reportFunnels reportGoals reportAudience growth reportClick map reportLoyalty programs reportBounces reportUndeliveries reportReport on global control groups
      Integrationsarrow
      • Action hooksarrow
      • Altcraft Action HooksAction hooks event typesAction Hook Message StructureJSON batch request (HTTP POST action hook)Message to RabbitMQ brokerMessage to RabbitMQ exchangerMessage to Kafka brokerTest event
        Integration of third-party services using Albatoarrow
      • Connecting Altcraft to Albato Launching the welcome scenario using AlbatoTransmitting event dataSetting up a trigger mailingEvent registrationGoogle Sheets and Altcraft integration AmoCRM and Altcraft integration
      Facebook Ads Manager™Google Ads AudiencesMAXYandex.Audience™VK AdsStatic segment synchronizationYandex AppMetrica™Tilda™Lpgenerator™WhatsAppViber integrationIntegration scopeData Transmitted During SynchronizationNotify
      Weblayersarrow
      • Formsarrow
        • Create a formarrow
        • General settingsForm constructorAppearanceActions and form publicationConditional logic in forms and surveys
        Data analyticsBinding data channel and formsNPS testing
        Pixelsarrow
      • Goal customer actions and scoring
        Pop-upsarrow
      • Creating and publishing a pop-upSetting up a popup in the code editorManaging pop-ups manually via scriptPopup analyticsGuide: pop-up for push subscriptionsCase: Creating a pop-up with the "Wheel of Fortune" widgetBasic cases of placing a popup via the Tag Manager
        Tag Managerarrow
      • Configuring and installing Tag ManagerTrigger typesVariable typesLinking a pixel and the Tag manager
      Settingsarrow
    • Account settingsCustom linksVirtual sendersSending policiesAudit journalTags FAQ
        Users, groups and accessarrow
      • Two-Factor Authentication (2FA)
        Connectionsarrow
      • Connection to Facebook Ads ManagerConnection to Google AdsConnecting to Yandex.Audience™Connection to 360dialogConnection to EdnaConnection to Devino TelecomConnection to SMSTrafficConnection to VK Ads™Connection to MTS OmniChannelCustom Authentication ConnectionOAuth2 connectionBasic Authentication connectionToken Authentication connectionConnection to RapportoMAX connectionConnection to Notify
      Attribute settings
      API requests: where to startarrow
    • Import or update a profileTrigger mailing launchEngage profile in scenario
      Changelogarrow
    • v2026.2.77v2026.1.76v2025.4.75v2025.4.74v2025.3.73v2025.2.72v2025.1.71v2024.4.70v2024.3.69v2024.2.68.2v2024.1.68
    Documentation archiveEmail Marketer's Library
      Campaignsarrow
    • Working with CampaignsLocal control groups (LCG)Stratification Violation ErrorAudience expansionAudience building
  • Communication channels
  • Push Channel
  • Web Push
  • Resource and Website Setup

Resource and Website Setup

Preliminary Settings​

  • Your website must use the HTTPS protocol. Web Push does not work on HTTP sites.

  • The web pixels and push notification functionality must be activated in the Altcraft Platform.

    • Cloud version: If you are using the cloud version of Altcraft, contact support at support@altcraft.com with a request to enable push notifications and pixels for your account.
    • On-Premises: Push notifications and pixels must be activated for all accounts from which sending is planned. Go to Admin Panel — Account Management, click on the required account, and activate push notifications and pixels. For more details, see the corresponding administrator documentation article.

Creating a Resource​

A resource is an object in the platform that links a subscriber database to a communication channel. After saving the resource, the Toolkit becomes available — a set of files for Web Push to work on your website.

tip

A separate resource must be created for each website.

In the platform, create or select a Database where push notification subscribers will be stored.

Add a push channel to an existing resource or create a new one. Enter the resource Name and Description.

In the Website, Form, or Application URL field, specify the address of the website where push subscription occurs and from which notifications will be sent. This address is added to the manifest.json file required for push setup, so push notifications will not work if the address is incorrect.

In the Default Tracking Domain field, specify the domain where Altcraft tracking is running. This domain handles link clicks in messages.

Next, select the desired browsers and providers for each platform. Settings for the selected providers will become available below.

Detailed instructions for each platform are available in this section of the documentation. Without provider configuration, push notifications will not work.

Installing the SDK on Your Website​

After all settings are configured, save the resource. The Toolkit — a set of files for Web Push to work on your website — will be available for download. The Toolkit will appear in the Installation section.

info

The Toolkit itself does not trigger the subscription window. It contains files and scripts for working with notifications. To display the subscription prompt, add the code that calls the ak-push.js function.

Installing files on the website is possible in two ways:

Method 1: Dynamic service worker​

Add the code that appears to your website and upload the installation files to the root directory:

  • manifest.json — project data for sending push via Google Chrome
  • service-worker.js — service worker registered in user browsers

The service-worker.js file is dynamic. It is automatically updated when resource settings change.

Example service-worker.js

importScripts('https://pxl.test.com/service-worker.js?id=MXw3');

caution

When the Website, Form, or Application URL parameter is changed in the resource being used, you must re-upload manifest.json to the website.

Method 2: Static Toolkit​

On the right side of the interface, click Download, extract the archive, and place the files in the root directory of the website. The Toolkit consists of four files:

  • README.txt — installation instructions
  • ak-push.js — script for displaying the subscription window
  • manifest.json — project data
  • service-worker.js — service worker

When using the Toolkit, you can change the path to service-worker.js. Open ak-push.js, find the swPath property, and specify the required path.

caution

When resource or provider settings are changed, you must re-upload the Toolkit to the website.

Adding Subscription Code​

After installing the Toolkit, add the code to display the subscription window to your website:


<button id="init_sub">Subscribe to Notifications</button>

<script>
document.getElementById('init_sub').addEventListener('click', function() {
try {
const akPush = new AKPush();
akPush.initSubscription()
}
catch (e) {
console.log(e);
}
});
</script>

How it works:

  1. The user clicks the button
  2. The initSubscription method is called
  3. A system browser window pops up with a subscription prompt

Subscription to one resource occurs separately for each browser. A single profile can have multiple active push subscriptions when subscribing from different browsers.

When a user grants permission to receive notifications, the platform automatically creates a profile for them. In addition to profile creation, other additional data can also be transferred. For more details on configuring data import, see here.

tip

Through the Altcraft Platform, you can create a custom subscription popup. For more details, see the article Popup for Push Subscription.

Last updated on Jun 2, 2026
Previous
First Web Push Mailing
Next
Web Push Providers
  • Preliminary Settings
  • Creating a Resource
  • Installing the SDK on Your Website
    • Method 1: Dynamic service worker
    • Method 2: Static Toolkit
  • Adding Subscription Code
© 2015 - 2026 Altcraft, LLC. All rights reserved.