If you can do so, I would recommend returning the components you have bought and get the money refunded.
Unfortunately, it is not a "plug and play" exercise replacing one shock absorber by another of a different type. There are some extras which you can fit later without too much trouble, but ESA is definitely not one of them. You are still missing the rest of the hardware and software needed in order to get the ESA to work and obtaining and fitting it would be prohibitively expensive.
If you really want ESA the only sensible choice is to sell your bike and buy another one which has it fitted already.