Close
  • Publishers
  • Blog
  • Contact Us
  • Login
  • Sign Up
  • Publishers
  • Blog
  • Contact Us
Login
Sign up
  • Publishers
  • Blog
  • Contact Us
Login
Sign up
Guides and Tutorials

How to Install LinkShifter Script for Single-Page Applications (SPAs)

Olena Moshchytska
January 30, 2025

When integrating Adquake into a Single-Page Application (SPA), including frameworks like React, Angular, and Vue.js, you must take the following steps to ensure proper ad display. There are two options you can choose from: automatic indexing or manual control.

1. Automatic Indexing

By default, script automatically indexes links upon loading. However, SPAs dynamically update content without full page reloads. To index new links, call this function after each render:
await window.adquake.restart();

2. Manual Indexing

To prevent the script from automatically indexing links on load, you can enable manual start mode. This approach avoids extra processing overhead during initial loading and prevents unnecessary client-side load time.
Add the manual-start="true" attribute when including the script:
<script async src="https://script.adquake.com/js/adquake.js"
adquake-key="your-key" manual-start="true"></script>
When your SPA finishes rendering new content, simply call:
await window.adquake.restart();

How to Verify Website
Previous Article

Ad Network for Publishers
Youtube Linkedin-in

Resources

Blog
Privacy Policy
Terms of Service

Contact Us

Softoria LLC
7901 4th
St. N
St. Petersburg, FL 33702
info@adquake.com
© 2025 Adquake. All Rights Reserved