B
B
Benajmin Smith2014-05-31 04:28:26
Partnership programs
Benajmin Smith, 2014-05-31 04:28:26

How to start implementing an affiliate program in an online store?

Good afternoon. There is an online store, the task is to implement an affiliate program through buttons to share in social networks. The client clicks on the product card to share, places a link to the product on his social network, and if a client comes from him, he gets a percentage.
I don’t ask for a ready-made solution, I want someone to tell me where to dig. I can write an admin account to account for refs, I just don’t understand how to pass a unique parameter to the link. (id or something). Tell the community, I will be grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shaks, 2014-05-31
@benjaminsmith

You need to add a referral parameter to the link that people share, it can be your webmaster's login or id.
If the current link
is xttp://site.com/computers/acer/model.html
Then the referral link, in other words the link of which the webmaster shares, should be like:
xttp://site.com/computers/acer/model.html?ref =123 (where 123 is the webmaster ID)
or
xttp://site.com/computers/acer/model.html?ref=vasya (vasya is the username)
or
xttp://site.com/computers/acer/model. html?ref=base64_encode(encrypted data is kind of tricky) Well, something like
that.
The short answer is to append the get parameter to the current URI.
When receiving such a parameter, hang an eternal cookieand if the visitor leaves but returns tomorrow / in a month, then the sale will be credited to the webmaster who brought the user first (or last).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question