Home > The Newbie Zone > Questions and Answers

Monetizer push subscriptions (9)


02-04-2022 12:27 PM #1 polyester (Member)
Monetizer push subscriptions

Hi there!

Is there, please, someone who could help me to set up the monetizer's push subscriptions?

I have followed vortex's 40 days tutorial but it was not working for me. (number 7)
https://stmforum.com/forum/showthrea...ng-Lander-Code

I have asked the support guys at monetizer but they were not really helpful.
They keep saying :

This domain will not work. You must use a custom domain, not an amazonaws domain, to setup your landing page for push
I'm using amazon aws as a webhosting, I have a domain from namecheap...

Could you, please, help me? I'm dealing with this for weeks :-(

I would really appreciate some help.

PolyEster


02-04-2022 05:14 PM #2 twinaxe (Senior Moderator)

I'm using amazon aws as a webhosting, I have a domain from namecheap...
Just use your domain from Namecheap

There´s even a tutorial how to add a domain that you can find HERE


02-04-2022 06:35 PM #3 polyester (Member)

Yes, I did that.
I've added a domain as it's said in the video, created the link, saved sw.js file to the domain.
But to use the domain in AWS - I've created the A record in Route 53 not in namecheap...
Everything seems to be working - except - it doesn't...


02-04-2022 06:56 PM #4 twinaxe (Senior Moderator)

But to use the domain in AWS - I've created the A record in Route 53 not in namecheap...
You don't need ASW for it.

You need to connect the domain to Monetizer and not to AWS.


02-04-2022 07:41 PM #5 polyester (Member)

Thank you @twinaxe I knew you would be the one helping :-)

Well, I did that at first - I used a domain for monetizer and other one for LPs - and I saved the sw.js file to the second one.

It was not working so I assumed I have to save it to the one connected to Monetizer


02-06-2022 01:58 PM #6 twinaxe (Senior Moderator)

Quote Originally Posted by polyester View Post
Thank you @twinaxe I knew you would be the one helping :-)
So is it working now?


02-06-2022 02:55 PM #7 polyester (Member)

No, it's not :-(


02-06-2022 03:14 PM #8 twinaxe (Senior Moderator)

Maybe it has to do with this:

Quote Originally Posted by polyester View Post
Well, I did that at first - I used a domain for monetizer and other one for LPs - and I saved the sw.js file to the second one.

It was not working so I assumed I have to save it to the one connected to Monetizer
Just to make it clear, the domain that you to Monetizer doesn´t have any other purpose than using it for the push script.

You set it up on Namecheap and that´s all.
You don´t use the domain for landing pages or anything else.

You upload the sw.js to the root directory of your landing page, it doesn´t have to do anything with the domains that you use because in the end you can link whatever domain you want to the directory on your server where your LPs are hosted.

In the sw.js itself you can see that it only tells where to import scripts from

Code:
importScripts("https://your.monetizerdomain.com/sw.js");
In the head section of your landing page you have to include another script then

Code:
<script>var pm_pid = "1234-abcdxyz";</script><script src="//your.monetizerdomain.com/js/pub.min.js" async></script>
Did you add the other code to the head section as well?


02-06-2022 06:51 PM #9 polyester (Member)

I did exactly as you say but it was not working :-(
(the script - in the head - is working ok; like - it appears at the lander)

That's why I added the domain to AWS and tried it differently.
Then the support told me:

Click image for larger version. 

Name:	obrázok_2022-02-06_204322.png 
Views:	6 
Size:	25.4 KB 
ID:	25968

So I've created an A record in AWS (I'm not sure it's what they meant though)

I have saved the sw.js file literally everywhere - to the root directory of everything :-(
Still nothing


Home > The Newbie Zone > Questions and Answers