/    Sign up×
Community /Pin to ProfileBookmark

Help whis pixel on site

Hi! Help me please! Sorry for my bad English ?
I was send a test job. But I have big problem’s whis JS.

[CODE]<script type=”text/javascript”>

if (typeof __GetI === “undefined”) {

__GetI = [];

}

(function () {

var p = {

type: “VIEW”,

/* config START */

site_id: “[site_id]”,

product_id: “[product_id]”,

pixel_id: “[pixel_id]”

/* config END */

};

__GetI.push(p);

var domain = (typeof __GetI_domain) == “undefined” ? “px.adhigh.net” :

__GetI_domain;

var src = (‘https:’ == document.location.protocol ? ‘https://’ : ‘http://’) + domain + ‘/p.js’;

var script = document.createElement( ‘script’ );

script.type = ‘text/javascript’;

script.src = src;

var s = document.getElementsByTagName(‘script’)[0];

s.parentNode.insertBefore(script, s);

})();

</script>[/CODE]

And task : Client can’t get information about “product_id”, but he want get category commodity, and price. Need remake code on request.

As I understand, I need remake

[CODE]

type: “VIEW”,

/* config START */

site_id: “[site_id]”,

product_id: “[product_id]”,

pixel_id: “[pixel_id]”

/* config END */[/CODE]

alter this :

[CODE]type: “VIEW”,

/* config START */

site_id: “[site_id]”,
[B][U]
category_id: “[category_id]”,

price_id: “[price_id]”,[/U][/B]

pixel_id: “[pixel_id]”

/* config END */[/CODE]

I think correctly ?

Thank you for attention

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@jedaisoulAug 25.2016 — Hi and welcome to the site. I don't understand your problem, and I'm not a JS expert anyway. I'd just suggest that you set up a local copy of the web site, try making the changes you are considering, and see what happens!
×

Success!

Help @ferom spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...