Syncing Project Settings

Syncing Project Settings

Why this matters  

The PageSense SDK works off a local copy of your project settings. When you update an experiment — change a variation, adjust traffic, modify targeting rules — the SDK needs to pick up those changes.
getAndUpdateProjectSettings does exactly that: it pulls the latest settings from PageSense and refreshes the SDK's internal state. You can trigger this via webhooks (real-time) or polling (scheduled).
Changes that trigger a sync:
  • New or updated experiments
  • Variation or traffic allocation changes
  • Updated audience targeting rules
  • Goal configuration changes
  • Experiment status updates
Webhooks give you real-time updates. When you modify a FullStack experiment in PageSense, the flow looks like this:
  1. Pause the experiment.
  2. Apply the changes.
  3. Relaunch the experiment.
If a webhook URL is set in your Environment Settings, PageSense sends a POST notification to that URL on relaunch. Your server should handle that event and call getAndUpdateProjectSettings immediately.
Retry behaviour if the webhook fails:
  • PageSense retries every 30 seconds.
  • Retries run for up to 15 minutes.
  • After that window, retries stop.
  • A new relaunch triggers a fresh notification.

Option 2 — Polling-based Sync  

No webhook setup? Use polling instead. The SDK runs a background loop at a configured interval, calls the settings API, and updates the configuration if anything has changed. Nothing to manage manually — it just runs.

getAndUpdateProjectSettings API  

Method  
  1. await pageSenseClient.getAndUpdateProjectSettings(
  2.   accountId,
  3.   sdkKey,
  4.   projectName
  5. );

Parameters  

Parameter
Type
Required
Description
accountId
String
Yes
Your PageSense account identifier.
sdkKey
String
Yes
Secure SDK key for your environment.
projectName
String
Yes
The PageSense project to sync.

Return Value  
  • true — settings fetched and updated successfully.
  • false — update failed (invalid params, network issue, or server error).
Usage Example  
  1. await pageSenseClient.getAndUpdateProjectSettings(
  2.   "ZylkerUser1",
  3.   "xyz123abdscd",
  4.   "ZylkerFullStackProject"
  5. );
After this runs, all subsequent experiment evaluations use the refreshed configuration.

Polling Lifecycle Methods  

Method
What it does
startPolling()
Kicks off the polling loop.
runPollingCycle()
Runs one sync cycle manually.
stopPolling()
Stops the loop and frees resources.
registerShutdownHooks()
Ensures polling stops cleanly when the Node.js process exits.

Quick comparison  

Approach
Best for
Webhook
Real-time updates, minimal latency.
Polling
Environments where webhook setup isn't possible.



        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            Zoho CRM Training Programs

            Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

            Zoho CRM Training
              Redefine the way you work
              with Zoho Workplace

                Zoho DataPrep Personalized Demo

                If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

                Zoho CRM Training

                  Create, share, and deliver

                  beautiful slides from anywhere.

                  Get Started Now


                    Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                    BOOK A SESSION







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG

                                  Zoho FSM Video Tutorials


                                        All-in-one knowledge management and training platform for your employees and customers.

                                                  Create. Review. Publish.

                                                  Write, edit, collaborate on, and publish documents to different content management platforms.

                                                  Get Started Now




                                                                    You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                        Manage your brands on social media


                                                                          • Desk Community Learning Series


                                                                          • Digest


                                                                          • Functions


                                                                          • Meetups


                                                                          • Kbase


                                                                          • Resources


                                                                          • Glossary


                                                                          • Desk Marketplace


                                                                          • MVP Corner


                                                                          • Word of the Day


                                                                          • Ask the Experts


                                                                            Zoho Sheet Resources

                                                                             

                                                                                Zoho Forms Resources


                                                                                  Secure your business
                                                                                  communication with Zoho Mail


                                                                                  Mail on the move with
                                                                                  Zoho Mail mobile application

                                                                                    Stay on top of your schedule
                                                                                    at all times


                                                                                    Carry your calendar with you
                                                                                    Anytime, anywhere




                                                                                          Zoho Sign Resources

                                                                                            Sign, Paperless!

                                                                                            Sign and send business documents on the go!

                                                                                            Get Started Now




                                                                                                    Zoho TeamInbox Resources





                                                                                                              Zoho DataPrep Demo

                                                                                                              Get a personalized demo or POC

                                                                                                              REGISTER NOW


                                                                                                                Design. Discuss. Deliver.

                                                                                                                Create visually engaging stories with Zoho Show.

                                                                                                                Get Started Now








                                                                                                                                    • Related Articles

                                                                                                                                    • Project Settings

                                                                                                                                      The Project Settings section in Zoho PageSense allows you to configure advanced controls that affect how your website is tracked and how experiments behave across your project. These settings help you customize tracking behavior, organize pages, run ...
                                                                                                                                    • General settings

                                                                                                                                      The General section in Settings provides an overview of your project’s essential information and subscription details in Zoho PageSense. It helps you quickly identify the configuration of your project and monitor how your current subscription plan is ...
                                                                                                                                    • Settings Overview

                                                                                                                                      The Settings section in Zoho PageSense allows you to configure how your project tracks visitor behavior, manages privacy preferences, controls user access, and connects integrations.These settings ensure that PageSense collects accurate data from ...
                                                                                                                                    • Content and Privacy Settings

                                                                                                                                      The Content and Privacy section in Zoho PageSense Settings allows you to manage how visitor data is collected, stored, and protected on your website. These settings help ensure that your tracking activities remain transparent to visitors while also ...
                                                                                                                                    • Get and Update Project Settings

                                                                                                                                      The Get and Update Project Settings feature ensures that your Android application always stays in sync with the latest Full Stack configuration defined in PageSense. Project settings include: Active experiments Variations and traffic allocation Goals ...
                                                                                                                                      Wherever you are is as good as
                                                                                                                                      your workplace

                                                                                                                                        Resources

                                                                                                                                        Videos

                                                                                                                                        Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                        eBooks

                                                                                                                                        Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                        Webinars

                                                                                                                                        Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                        CRM Tips

                                                                                                                                        Make the most of Zoho CRM with these useful tips.



                                                                                                                                          Zoho Show Resources