Skip to content

Commit

Permalink
Raptive ads launch (#556)
Browse files Browse the repository at this point in the history
* Launch of raptive ads

* Moved raptive code to head element

* Added overflow hidden to landing page

---------

Co-authored-by: Spicer Matthews <[email protected]>
  • Loading branch information
spicermatthews and Spicer Matthews authored Jan 20, 2024
1 parent 70c8cb1 commit dfcadba
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 307 deletions.
253 changes: 0 additions & 253 deletions src/__tests__/pages/index.moduleLoad.test.js

This file was deleted.

17 changes: 17 additions & 0 deletions src/components/TabCMPHeadElements.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ import React from 'react'
// https://github.com/gladly-team/tab-cmp/blob/master/src/tagModified.html
const TabCMPHeadElements = () => (
<>
<script
dangerouslySetInnerHTML={{
__html: `(function(w, d) {
w.adthrive = w.adthrive || {};
w.adthrive.cmd = w.adthrive.cmd || [];
w.adthrive.plugin = 'adthrive-ads-manual';
w.adthrive.host = 'ads.adthrive.com';
var s = d.createElement('script');
s.async = true;
s.referrerpolicy='no-referrer-when-downgrade';
s.src = 'https://' + w.adthrive.host + '/sites/655cd66352dfc71af0778a48/ads.min.js?referrer=' + w.encodeURIComponent(w.location.href) + '&cb=' + (Math.floor(Math.random() * 100) + 1);
var n = d.getElementsByTagName('script')[0];
n.parentNode.insertBefore(s, n);
})(window, document);`,
}}
/>

<script
type="text/javascript"
data-cfasync="false"
Expand Down
Loading

1 comment on commit dfcadba

@vercel
Copy link

@vercel vercel bot commented on dfcadba Jan 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.