Get and Update Project Settings

Get and Update Project Settings

Overview

The getAndUpdateProjectSettings API is used to fetch the latest project setting details from the PageSense server and update the SDK accordingly. This ensures your application remains fully synchronised with any updates made in the PageSense application, including changes to experiments, variations, targeting conditions, and other project-level settings. This API can be invoked in two ways: Webhook or Polling.
  1. Webhook-based integration: This updates the project settings asynchronously based on event triggers from PageSense.
  2. Polling-based integration: This updates the project settings synchronously at a predefined time interval using a dedicated polling thread in SDK.

Webhook  

When users make updates to a FullStack A/B experiment in PageSense—such as editing variations, changing targeting conditions, or modifying goals—they usually pause the experiment, apply the required changes, and then relaunch it by clicking the Launch button.

If a webhook has been configured in the Environment Settings of your PageSense project, PageSense will automatically trigger a webhook call to the specified webhook endpoint whenever the experiment is relaunched.

Your system should be prepared to receive the webhook call from PageSense and trigger the getAndUpdateProjectSettings API immediately after receiving the webhook, so the API updates the latest project setting details in the  without any delay.

Webhook Retry

If the initial webhook call fails due to network issues or server downtime, PageSense will automatically retry the webhook call every 30 seconds for up to 15 minutes. If the call is not successfully processed within that time window, retries will stop. However, if additional updates are made and the experiment is relaunched, the webhook call will be retried again.

Polling  

If webhook integration is not feasible in your environment, you can use the SDK’s polling mechanism to keep the project setting details up to date. When polling is enabled, the SDK automatically calls the getAndUpdateProjectSettings API at regular intervals (configured by you) to check for any updates in PageSense.

A background thread in the SDK is started for the polling based on the configured polling interval. At each interval, it calls the getAndUpdateProjectSettings API  to check for updates in the PageSense project settings. If any changes are detected, the API updates the internal state of the SDK with the latest project setting details. If there are no changes, the SDK runs with the existing project settings until the next polling cycle.

Polling is a reliable fallback if webhook support is unavailable or impractical in your server architecture.

API Usage  

  1. pageSenseClient.getAndUpdateProjectSettings("accountName", "sdkKey", "projectName");

Parameter details:

Parameter

Type

Required

Description

accountName

String

Yes

The unique identifier of your PageSense account.

sdkKey

String

Yes

The secure key for the environment, available under the Environment section of the PageSense application.

projectName

String

Yes

The name of the project as defined in your PageSense account.


Example code

  1. pageSenseClient.getAndUpdateProjectSettings("ZylkerUser1", "xyz123abdscd", "ZylkerFullStackProject"); 
We hope this documentation helps make the process easy for you. Please feel free to reach out to us anytime by dropping an email to support@zohopagesense.com if you need more explanation or have any questions.

      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

                              WCAG



                                        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

                                                                                                                          • Get and Update Project Settings

                                                                                                                            Overview The getAndUpdateProjectSettings API is used to fetch the latest project setting details from the PageSense server and update the SDK accordingly. This ensures your application remains fully synchronised with any updates made in the PageSense ...
                                                                                                                          • Get started with your PageSense Mobile Push Notifications

                                                                                                                            Building and maintaining an efficient relationship with your user group is crucial and mobile push notifications are spot-on the most effective way. From interacting with your consumers, boosting conversions, and improving user experience—it’s a ...
                                                                                                                          • Get Variation Name

                                                                                                                            The Get Variation Name API is used to return the name of a FullStack A/B Test experiment. It evaluates whether the user qualifies for the experiment and assigns a variation accordingly. Using getVariationName without user attributes Method string ...
                                                                                                                          • Get Variation Name

                                                                                                                            The getVariationName API is used to get the allocated variation for the user for the specified FullStack A/B Test experiment. Method: String variationName = pageSenseClient.getVariationName(experimentName, userId, userAttributes); Parameters: ...
                                                                                                                          • Enable cross-domain tracking in PageSense

                                                                                                                            Cross-domain tracking is the process of tracking a visitor's journey across different domains to achieve a desired goal or action. For example, your user visits your website's homepage www.technology.com, clicks the blog tab on the page and is ...
                                                                                                                            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