> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gocertify.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Popups

> Start building loyal communities with targeted, gated offers.

Popups are a great way to keep shoppers in-flow, letting them verify and collect rewards without leaving the page they're browsing.
To set up a popup ensure you have [installed the head script](/section/gettingStarted/integrateOnSite.mdx) and then simply add an onclick event to your given CTA, button or link and call the gocertify.popup function.

<CodeGroup>
  ```javascript Campaign Popup theme={null}
  gocertify.popup("student-youth")
  ```

  ```javascript Campaign Popup with clickref theme={null}
  //redirect to a specific page post verification
  gocertify.popup("student-youth?clickref=...") 
  ```

  ```html Link with onclick event theme={null}
  <a href="#" onclick="gocertify.popup('campaign-name'); return false;">click here</a>
  ```
</CodeGroup>

<Card title="Popups" img="https://mintcdn.com/gocertify-db9cc6b8/PPr5fj4e8e7ywwBC/images/osm/OSM-popUp.png?fit=max&auto=format&n=PPr5fj4e8e7ywwBC&q=85&s=993318584fc1cc1f65667b35d34cf3f6" width="3260" height="1406" data-path="images/osm/OSM-popUp.png">
  Deploy a CTA that initiates the verification flow from high traffic areas of your site.
</Card>
