Ask your WordPress questions! Pay money and get answers fast! (more info)

Add .net code to WordPress WordPress

  • SOLVED

Hello,

I've been asked to add this .net code to a WordPress site where it is called on every page. I was thinking either header.php or functions.php. But I'm not sure how it would be done.

The site is running on a windows server and there is a .net application in a sub-domain.

Here is the code

If Not Me.IsPostBack Then
WebTrackingAPI = Application("WebTrackingAPI")
WebTrackingAPI.Debug = Application("Debug")
WebTrackingAPI.PageAudit(Session("C"), Session("P"), Session("L"), Session.SessionID,
Request)
End If


Thanks.

Answers (1)

2014-08-06

Yakir Sitbon answers:

You can create a simple API with WebService or RESTful. And you can request to your server for this task.

Do you know to write coding?


kld53 comments:

Sorry for the delay. Thank you for your answer Yakir. No, I don't know how I would write this code.