code: def generate_referral_chain(self, pages):
          
          if not type(pages) is tuple and not type(pages) is list:
              raise Exception(
                  "Exception: Expecting a list of website pages for chaining!")
          if len(pages) < 2:
              raise Exception(
                  "Exception: At least two website pages required for chaining!")
          for page in pages:
              # Find out if any of the web pages are invalid before continuing
              if not page_utils.is_valid_url(page):
                  raise Exception(
                      "Exception: Website page {%s} is not a valid URL!" % page)
          for page in pages:
              self.generate_referral(None, page)
docs: Use this method to chain the action of creating button links on
              one website page that will take you to the next page.
              (When you want to create a referral to a website for traffic
              generation without increasing the bounce rate, you'll want to visit
              at least one additional page on that site with a button click.)