Sign inTry Now

Integrating with Vercel Log Drains

This doc will guide you how to Integrate the AI Traffic Analytics using Vercel. It uses Vercel's log drain feature and can only be availed by users on Vercel Pro/Enterprise plan

1. Click on Vercel Integration Tab

Step 1 screenshot

2. Enter your url in the input box

Step 2 screenshot

3. Click on Continue

Step 3 screenshot

Head over to Project Settings in Vercel

4. Click on Log Drains in Project Settings

Step 4 screenshot

5. Click on Add Log-Drain

Step 5 screenshot

6. Select "Custom Log Drain

Step 6 screenshot

7. Click on Continue

Step 7 screenshot

8. Select Specific Projects

Step 8 screenshot

9. Select the project for which you want to turn on the AI Analytics

Step 9 screenshot

10. Select "Static" and "Function" as Sources

Step 10 screenshot

11. Select Production as environment

Step 11 screenshot

12. Copy the Endpoint URL from Writesonic

Step 12 screenshot

13. Paste the copied endpoint url in input box

Step 13 screenshot

14. Turn on the Custom Headers

Step 14 screenshot

15. Copy the Header Key from Writesonic

Step 15 screenshot

16. Paste the copied Header Key in Vercel

Step 16 screenshot

17. Copy the Header Value from Writesonic

Step 17 screenshot

18. Paste the copied Header Value in Vercel

Step 18 screenshot

19. Click on Add

Step 19 screenshot

20. Copy the Vercel x-vercel-verify header

Step 20 screenshot

21. Click on Continue

Step 21 screenshot

22. Paste the copied Vercel x-vercel-verify header in the input box

Step 22 screenshot

23. Click on Submit

Step 23 screenshot

24. After submitting you will get a green tick, indicating the header has been saved

Step 24 screenshot

25. Click on Verify

Step 25 screenshot

26. Once verified on Vercel, click on Add Log Drain

Step 26 screenshot

27. Click on Confirm and Add Log Drain

Step 27 screenshot

28. Click on Done

Step 28 screenshot

29. Click on Finish Integration

Step 29 screenshot

30. Your website will start capturing AI traffic using Vercel Integration

Step 30 screenshot